summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2011-03-25 18:35:02 (GMT)
committerJoey Hess <joey@kitenet.net>2011-03-25 18:35:02 (GMT)
commitc72e1705e402c17255493a7c3062b3cc86ac3b72 (patch)
tree6ae4281d19086500779fbc4ccbc26581db5459ed /functions
parentba2e4b2c52ed7e62ea96644f16fd42113db2730c (diff)
downloaddebootstrap-c72e1705e402c17255493a7c3062b3cc86ac3b72.zip
debootstrap-c72e1705e402c17255493a7c3062b3cc86ac3b72.tar.gz
debootstrap-c72e1705e402c17255493a7c3062b3cc86ac3b72.tar.bz2
improve warning message
Diffstat (limited to 'functions')
-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
}