diff options
author | Joey Hess <joey@kitenet.net> | 2011-03-25 14:35:02 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-03-25 14:35:02 -0400 |
commit | c72e1705e402c17255493a7c3062b3cc86ac3b72 (patch) | |
tree | 6ae4281d19086500779fbc4ccbc26581db5459ed | |
parent | ba2e4b2c52ed7e62ea96644f16fd42113db2730c (diff) | |
download | debootstrap-c72e1705e402c17255493a7c3062b3cc86ac3b72.tar.gz |
improve warning message
-rw-r--r-- | functions | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -192,8 +192,9 @@ download_style () { } keyring () { - if [ -z "$KEYRING" ] && [ -e "$1" ]; then - KEYRING="$1" + KEYRING_WANTED="$1" + if [ -z "$KEYRING" ] && [ -e "$KEYRING_WANTED" ]; then + KEYRING="$KEYRING_WANTED" fi } @@ -476,8 +477,8 @@ download_release_sig () { (gpgv --status-fd 1 --keyring "$KEYRING" --ignore-time-conflict \ "$relsigdest" "$reldest" || true) | read_gpg_status progress 100 100 DOWNRELSIG "Downloading Release file signature" - elif [ -z "$DISABLE_KEYRING" ]; then - warning KEYRING "Cannot verify gpg signature; keyring file %s is not available" "$KEYRING" + elif [ -z "$DISABLE_KEYRING" ] && [ -n "$KEYRING_WANTED" ]; then + warning KEYRING "Cannot check Release signature; keyring file not available %s" "$KEYRING_WANTED" fi } |