Make signing key management backwards-compatible
This commit is contained in:
parent
e837c1c815
commit
776c1d2af7
1 changed files with 2 additions and 1 deletions
|
|
@ -129,7 +129,8 @@ if [ "1$SIGNKEY" != "1" ] ; then
|
|||
gpgv --keyring ${LOCAL_APT}/etc/trusted.gpg *.dsc
|
||||
else
|
||||
if grep -q "BEGIN PGP SIGNATURE" *.dsc; then
|
||||
KEY=$(gpgv --keyring ${LOCAL_APT}/etc/trusted.gpg *.dsc 2>&1 | grep "RSA key" | sed 's/.*RSA key //' || true)
|
||||
KEY=$(gpgv --keyring ${LOCAL_APT}/etc/trusted.gpg *.dsc 2>&1 | grep "key ID" | sed 's/.*key ID //' || true)
|
||||
[ $KEY -z ] && KEY=$(gpgv --keyring ${LOCAL_APT}/etc/trusted.gpg *.dsc 2>&1 | grep "RSA key" | sed 's/.*RSA key //' || true)
|
||||
apt-key --keyring ${LOCAL_APT}/etc/trusted.gpg adv --recv-keys --keyserver keyserver.ubuntu.com $KEY > /dev/null
|
||||
gpgv --keyring ${LOCAL_APT}/etc/trusted.gpg *.dsc
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue