]>
git.saurik.com Git - apt.git/blob - debian/apt.postinst
9ff1e031c607cb56a5d02452b39d805608a51435
5 # summary of how this script can be called:
6 # * <postinst> `configure' <most-recently-configured-version>
7 # * <old-postinst> `abort-upgrade' <new version>
8 # * <conflictor's-postinst> `abort-remove' `in-favour' <package>
10 # * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
11 # <failed-install-package> <version> `removing'
12 # <conflicting-package> <version>
13 # for details, see http://www.debian.org/doc/debian-policy/ or
14 # the debian-policy package
18 SECRING
='/etc/apt/secring.gpg'
19 # test if secring is an empty normal file
20 if test -f $SECRING -a ! -s $SECRING; then
25 # ensure tighter permissons on the logs, see LP: #975199
26 if dpkg
--compare-versions "$2" lt
-nl 0.9.7.7; then
27 # ensure permissions are right
28 chmod -f 0640 /var
/log
/apt
/term.log
* || true
31 # create kernel autoremoval blacklist on update
32 if dpkg
--compare-versions "$2" lt
-nl 0.9.9.3; then
33 /etc
/kernel
/postinst.d
/apt
-auto-removal
37 abort
-upgrade|abort
-remove|abort
-deconfigure)
42 echo "postinst called with unknown argument \`$1'" >&2
47 # dh_installdeb will replace this with shell code automatically
48 # generated by other debhelper scripts.