summaryrefslogtreecommitdiff
path: root/debian/apt.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/apt.postinst')
-rw-r--r--debian/apt.postinst10
1 files changed, 6 insertions, 4 deletions
diff --git a/debian/apt.postinst b/debian/apt.postinst
index 2ebcfb19b..4d87c4e25 100644
--- a/debian/apt.postinst
+++ b/debian/apt.postinst
@@ -15,10 +15,12 @@ set -e
case "$1" in
configure)
- if ! test -f /etc/apt/trusted.gpg; then
- cp /usr/share/apt/ubuntu-archive.gpg /etc/apt/trusted.gpg
- fi
- apt-key update || true
+ 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)