summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2024-11-23 18:32:21 +0100
committerJulian Andres Klode <jak@debian.org>2024-11-28 10:17:21 +0100
commite285d9f75546bda442ace3cba7c6c357623937e3 (patch)
tree3a1a9b8b06af90c6a281e73565a5f3a685bad8bc
parentda306ae6cfa9170170775eeecf45db7ba527ba23 (diff)
apt-key: Temporarily accept 'pub' as an extension for binary gpg keys
-rw-r--r--cmdline/apt-key.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmdline/apt-key.in b/cmdline/apt-key.in
index 763fc7baf..dd1c52ab0 100644
--- a/cmdline/apt-key.in
+++ b/cmdline/apt-key.in
@@ -312,7 +312,7 @@ is_supported_keyring() {
return 0
fi
local FILEEXT="${1##*.}"
- if [ "$FILEEXT" = 'gpg' ]; then
+ if [ "$FILEEXT" = 'gpg' -o "$FILEEXT" = 'pub' ]; then
# 0x98, 0x99 and 0xC6 via octal as hex isn't supported by dashs printf
if printf '\231' | cmp -s -n 1 - "$1"; then
true