copy keys to /etc/apt/trusted.gpg.d with appropriate extension for them to not be ignored.

This commit is contained in:
Marcel Partap 2018-09-12 18:00:20 +02:00 committed by Luca Boccassi
parent 5290842288
commit 8403487d4e
2 changed files with 12 additions and 2 deletions

View File

@ -221,8 +221,13 @@ then
config/archives/*.key.chroot
do
if [ -e "${FILE}" ]
then
if grep -q "PGP PUBLIC KEY BLOCK" "${FILE}"
then
cp ${FILE} chroot/etc/apt/trusted.gpg.d/$(basename ${FILE}).asc
else
cp ${FILE} chroot/etc/apt/trusted.gpg.d/$(basename ${FILE}).gpg
fi
fi
done
fi

View File

@ -352,8 +352,13 @@ EOF
config/archives/*.key.chroot
do
if [ -e "${FILE}" ]
then
if grep -q "PGP PUBLIC KEY BLOCK" "${FILE}"
then
cp ${FILE} chroot/etc/apt/trusted.gpg.d/$(basename ${FILE}).asc
else
cp ${FILE} chroot/etc/apt/trusted.gpg.d/$(basename ${FILE}).gpg
fi
fi
done
fi