File: preinst

package info (click to toggle)
hostname 2.07
  • links: PTS
  • area: main
  • in suites: potato
  • size: 172 kB
  • ctags: 40
  • sloc: ansic: 454; makefile: 112; sh: 11
file content (15 lines) | stat: -rwxr-xr-x 369 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

dpkg --assert-support-predepends 2> /dev/null

case $? in
 0) exit 0 ;; # fine, supported
 1) exit 1 ;; # dpkg writes an error message to stdio
 2) cat <<EOT
This package requires features of dpkg unavailable in this version.
Please upgrade to a more recent version (>=1.1.0) of dpkg.
EOT
    exit 1 ;; # dpkg didn't recognise the option
 *) exit 2 ;;
esac