File: preinst

package info (click to toggle)
debian-cd 2.0.3
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 496 kB
  • ctags: 5
  • sloc: makefile: 86; perl: 65; sh: 13
file content (18 lines) | stat: -rw-r--r-- 418 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh -e

if [ -e /usr/src/debian-cd ]; then
  if [ "$1" = upgrade -o "$1" = install ];then
    if dpkg --compare-versions "$2" lt 1.99.14-1 ; then
      cat <<!EOT!

ERROR: /usr/src/debian-cd already exists.
       I don't want to clobber anything that you might have put in there,
       so please move it out of the way or remove it, and then re-install
       this package.


!EOT!
      exit 1
    fi
  fi
fi