File: postinst

package info (click to toggle)
apt-move 4.1.21
  • links: PTS
  • area: main
  • in suites: woody
  • size: 160 kB
  • ctags: 62
  • sloc: sh: 818; awk: 205; cpp: 113; makefile: 63; perl: 53
file content (12 lines) | stat: -rw-r--r-- 361 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
# $Id: postinst,v 1.2 2000/06/18 23:54:35 herbert Exp $

set -e
if [ "$1" = configure ] && [ -n "$2" ] &&
   dpkg --compare-versions "$2" lt 4.0; then
	LOCALDIR=$(sed -n '/^LOCALDIR=/ { s/^.*=//; p; q; }' /etc/apt-move.conf)
	[ $LOCALDIR ] || LOCALDIR=/mirrors/debian
	[ -d "$LOCALDIR/.apt-move" ] && touch $LOCALDIR/.apt-move/ancient
fi

#DEBHELPER#