summaryrefslogtreecommitdiff
path: root/cmdline
diff options
context:
space:
mode:
authorJohan Kiviniemi <devel@johan.kiviniemi.name>2013-05-22 21:14:33 +0300
committerJohan Kiviniemi <devel@johan.kiviniemi.name>2013-05-22 21:14:33 +0300
commitecc46c1c42bb1aa59a0c8f0fb3eb12a5938da6ca (patch)
tree86c48e2adf18bd206990d352e171a872180fd256 /cmdline
parent5de346684f6777eb9e2ac1a38d687c1bc50f35b0 (diff)
cmdline/apt-key: Accept nonexistent --keyring file with adv as well
Diffstat (limited to 'cmdline')
-rwxr-xr-xcmdline/apt-key2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmdline/apt-key b/cmdline/apt-key
index 309c51b13..2c087acbc 100755
--- a/cmdline/apt-key
+++ b/cmdline/apt-key
@@ -163,7 +163,7 @@ if [ "$1" = "--keyring" ]; then
#echo "keyfile given"
shift
TRUSTEDFILE="$1"
- if [ -r "$TRUSTEDFILE" ] || [ "$2" = 'add' ]; then
+ if [ -r "$TRUSTEDFILE" ] || [ "$2" = 'add' ] || [ "$2" = 'adv' ]; then
GPG="$GPG --keyring $TRUSTEDFILE --primary-keyring $TRUSTEDFILE"
else
echo >&2 "Error: The specified keyring »$TRUSTEDFILE« is missing or not readable"