summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
Diffstat (limited to 'functions')
-rw-r--r--functions6
1 files changed, 4 insertions, 2 deletions
diff --git a/functions b/functions
index 3c81524..1594d09 100644
--- a/functions
+++ b/functions
@@ -218,8 +218,10 @@ keyring () {
KEYRING="$1"
elif [ -z "$DISABLE_KEYRING" ]; then
if [ -z "$USER_MIRROR" ] && [ -z "$FORCE_KEYRING" ]; then
- info KEYRING "Keyring file not available at %s; switching to https mirror %s" "$1" "https://${DEF_MIRROR#http://}"
- USER_MIRROR="https://${DEF_MIRROR#http://}"
+ if [ "http" = "${DEF_MIRROR%%://*}" ]; then
+ USER_MIRROR="https://${DEF_MIRROR#http://}"
+ info KEYRING "Keyring file not available at %s; switching to https mirror %s" "$1" "$USER_MIRROR"
+ fi
else
warning KEYRING "Cannot check Release signature; keyring file not available %s" "$1"
if [ -n "$FORCE_KEYRING" ]; then