blob: 6ea7df172ab8632b0cd9dd97e1048f2c60ee7018 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/bin/sh
set -e
# cleanup keys from the old /etc/apt/trusted.gpg, because it was not
# properly cleaned up by previous versions of leap-keyring.
# we could try to limit this cleanup to just upgrade moving from
# versions before 2016.03.03, but due to the package rename and the
# possibility of someone having purged the old package before
# installing this new one, it's better to do it unconditionally.
# another way of looking at this is that the installation of this
# package will ensure that the keys in question don't show up in two
# keyrings at once.
if [ -e /etc/apt/trusted.gpg ] && which gpg >/dev/null; then
# remove the version of the keys that were shipped in leap-keyring before version 2016.03.03:
gpg --batch --no-tty --no-default-keyring --keyring /etc/apt/trusted.gpg --delete-key 0x1E453B2CE87BEE2F7DFE99661E34A1828E207901 2>/dev/null || true
gpg --batch --no-tty --no-default-keyring --keyring /etc/apt/trusted.gpg --delete-key 0xCE433F407BAB443AFEA196C1837C1AD5367429D9 2>/dev/null || true
fi
# Remove the leap keyrings from apt-key, they are being placed in
# /usr/share/keyrings and /etc/apt/sources.list.d/leap.list is being generated
# to have signed-by lines such as:
#
#deb [signed-by /usr/share/keyrings/leap-experimental-archive.gpg] http://deb.leap.se/platform snapshots main
apt-key del 1E453B2CE87BEE2F7DFE99661E34A1828E207901 || true
apt-key del CE433F407BAB443AFEA196C1837C1AD5367429D9 || true
#DEBHELPER#
|