summaryrefslogtreecommitdiff
path: root/scripts/build/bootstrap_archives
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build/bootstrap_archives')
-rwxr-xr-xscripts/build/bootstrap_archives7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/build/bootstrap_archives b/scripts/build/bootstrap_archives
index a5eca16a0..9e94680eb 100755
--- a/scripts/build/bootstrap_archives
+++ b/scripts/build/bootstrap_archives
@@ -222,7 +222,12 @@ then
do
if [ -e "${FILE}" ]
then
- cp ${FILE} chroot/etc/apt/trusted.gpg.d/$(basename ${FILE}).asc
+ 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