]> git.saurik.com Git - apt.git/blobdiff - cmdline/apt-key
finially do the post-processing of the po's for all non-de
[apt.git] / cmdline / apt-key
index e632be706c49c581d3d9593ec3e48e2a9ec9c34d..97d6e03235ea6738dd2074d58e27f508fa3c9c91 100755 (executable)
@@ -152,7 +152,7 @@ if [ "$1" = "--keyring" ]; then
         #echo "keyfile given"
        shift
        TRUSTEDFILE="$1"
-       if [ -r "$TRUSTEDFILE" ]; then
+       if [ -r "$TRUSTEDFILE" ] || [ "$2" = 'add' ]; then
                GPG="$GPG --keyring $TRUSTEDFILE --primary-keyring $TRUSTEDFILE"
        else
                echo >&2 "Error: The specified keyring »$TRUSTEDFILE« is missing or not readable"