]> git.saurik.com Git - apt.git/blobdiff - debian/apt.postinst
* doc/apt-cdrom.8.xml:
[apt.git] / debian / apt.postinst
index df0433057f1dba4c0c87737214f2ab75a570c9ac..4d87c4e256f8ab3ee936a6037a6f0b748ef53580 100644 (file)
@@ -15,11 +15,12 @@ set -e
 
 case "$1" in
     configure)
 
 case "$1" in
     configure)
-
-        if ! test -f /etc/apt/trusted.gpg; then
-                cp /usr/share/apt/ubuntu-archive.gpg /etc/apt/trusted.gpg
-        fi
-
+       SECRING='/etc/apt/secring.gpg'
+       # test if secring is an empty normal file
+       if test -f $SECRING -a ! -s $SECRING; then
+               rm -f $SECRING
+       fi
+       apt-key update
     ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)
     ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)