summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2011-03-25 14:35:02 -0400
committerJoey Hess <joey@kitenet.net>2011-03-25 14:35:02 -0400
commitc72e1705e402c17255493a7c3062b3cc86ac3b72 (patch)
tree6ae4281d19086500779fbc4ccbc26581db5459ed
parentba2e4b2c52ed7e62ea96644f16fd42113db2730c (diff)
downloaddebootstrap-c72e1705e402c17255493a7c3062b3cc86ac3b72.tar.gz
improve warning message
-rw-r--r--functions9
1 files changed, 5 insertions, 4 deletions
diff --git a/functions b/functions
index e066922..f0ffe10 100644
--- a/functions
+++ b/functions
@@ -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
}