File: preinst

package info (click to toggle)
cpio 2.6-18.1%2Betch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 3,248 kB
  • ctags: 1,730
  • sloc: ansic: 14,893; sh: 4,793; makefile: 234; sed: 16
file content (16 lines) | stat: -rw-r--r-- 458 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh -e

# Fix up remnants of old packages
if [ "$1" = upgrade ] && [ -n "$2" ]; then
    if dpkg --compare-versions "$2" lt '2.4.2-39' && \
	test -L /sbin/rmt && test /sbin/rmt -ef /usr/sbin/rmt; then
	rm -f /sbin/rmt
    fi
    if dpkg --compare-versions "$2" eq '2.4.2-34' || \
	dpkg --compare-versions "$2" eq '2.4.2-35'; then
	update-alternatives --remove mt /bin/gmt
    fi
    if test -L /usr/doc/cpio; then
        rm -f /usr/doc/cpio
    fi
fi