summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/setup/Kconfig12
-rw-r--r--scripts/lib/ptxd_make_get.sh3
2 files changed, 14 insertions, 1 deletions
diff --git a/config/setup/Kconfig b/config/setup/Kconfig
index b7af5508c..f61160368 100644
--- a/config/setup/Kconfig
+++ b/config/setup/Kconfig
@@ -133,6 +133,18 @@ config SETUP_PTXMIRROR
help
Enter the fallback mirror for all packages here.
+if SETUP_PTXMIRROR_ONLY
+
+config SETUP_URL_WHITELIST
+ string
+ prompt "URL Whitelist"
+ help
+ A space separated list of URLs. Any download URL that starts with
+ one of the here specified URLs will always be used. This
+ overwrites the 'only use PTXdist Mirror' feature for these URLs.
+
+endif # SETUP_PTXMIRROR_ONLY
+
########################################################################
# WARNING! #
# #
diff --git a/scripts/lib/ptxd_make_get.sh b/scripts/lib/ptxd_make_get.sh
index c3c0bb257..d6c66fb92 100644
--- a/scripts/lib/ptxd_make_get.sh
+++ b/scripts/lib/ptxd_make_get.sh
@@ -292,7 +292,8 @@ ptxd_make_get() {
if [ -n "${PTXCONF_SETUP_PTXMIRROR_ONLY}" ]; then
local pattern
add=false
- for pattern in "${PTXCONF_SETUP_PTXMIRROR}"; do
+ for pattern in "${PTXCONF_SETUP_PTXMIRROR}" \
+ ${PTXCONF_SETUP_URL_WHITELIST}; do
if [[ "${url}" =~ "${pattern}" ]]; then
add=true
break