diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-19 09:19:45 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-19 09:19:45 +0000 |
commit | 4160d43b0977874d7deef26f581d16b685124936 (patch) | |
tree | 804adfa858982354a04e16f8903bbfb451af41de /functions | |
parent | Adding upstream version 1.0.135. (diff) | |
download | debootstrap-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-- | functions | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |