]> git.saurik.com Git - apt.git/commitdiff
cmdline/apt-key: Accept nonexistent --keyring file with adv as well
authorJohan Kiviniemi <devel@johan.kiviniemi.name>
Wed, 22 May 2013 18:14:33 +0000 (21:14 +0300)
committerJohan Kiviniemi <devel@johan.kiviniemi.name>
Wed, 22 May 2013 18:14:33 +0000 (21:14 +0300)
cmdline/apt-key
debian/changelog

index 309c51b13aa6bbed3b5eb8d6c3c603e95aec84e7..2c087acbc667c6da58363d3de35d0d8cb28f3561 100755 (executable)
@@ -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"
index 89da46ed1149443c2c2761a6421d15702a3e0eab..b3800fc4281f85a1ec54e7a1d7bcd5b32fc28b1a 100644 (file)
@@ -11,7 +11,9 @@ apt (0.9.8.2) UNRELEASED; urgency=low
     - fix build failure when building without NLS (closes: #671587)
 
   [ Johan Kiviniemi ]
-  * cmdline/apt-key: Create new keyrings with mode 0644 instead of 0600.
+  * cmdline/apt-key:
+    - Create new keyrings with mode 0644 instead of 0600.
+    - Accept a nonexistent --keyring file with the adv subcommand as well.
 
  -- Christian Perrier <bubulle@debian.org>  Thu, 16 May 2013 22:28:22 +0200