summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-19 09:19:45 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-19 09:19:45 +0000
commit4160d43b0977874d7deef26f581d16b685124936 (patch)
tree804adfa858982354a04e16f8903bbfb451af41de /functions
parentAdding upstream version 1.0.135. (diff)
downloaddebootstrap-4160d43b0977874d7deef26f581d16b685124936.tar.xz
debootstrap-4160d43b0977874d7deef26f581d16b685124936.zip
Adding upstream version 1.0.136.upstream/1.0.136
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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