mirror of
https://github.com/macports/mpbb.git
synced 2026-07-12 18:18:44 -07:00
mpbb-checkout: Blacklist hosts using wildcards
This feature is new in MacPorts 2.5.
This commit is contained in:
committed by
Ryan Schmidt
parent
f808328118
commit
c90475b6f1
+2
-8
@@ -185,18 +185,12 @@ checkout() {
|
||||
# shellcheck disable=SC2154
|
||||
(cd "${ports_dir}" && "${option_prefix}/bin/portindex") || return
|
||||
|
||||
local -ar mirrors=(aarnet.au cjj.kr fco.it her.gr jnb.za jog.id kmq.jp
|
||||
lil.fr mse.uk nou.nc nue.de osl.no pek.cn sea.us
|
||||
ykf.ca ywg.ca)
|
||||
# Unset IFS to ensure "${mirrors[*]}" uses spaces as separators.
|
||||
(unset IFS && cat > "${option_work_dir}/macports.conf" <<EOF
|
||||
cat > "${option_work_dir}/macports.conf" <<EOF || return
|
||||
# Automatically overwritten by mpbb-checkout
|
||||
# Do not edit !!!
|
||||
sources_conf ${option_work_dir}/sources.conf
|
||||
host_blacklist ${mirrors[*]/%/.distfiles.macports.org} \
|
||||
${mirrors[*]/%/.packages.macports.org}
|
||||
host_blacklist *.distfiles.macports.org *.packages.macports.org
|
||||
EOF
|
||||
) || return
|
||||
|
||||
if uname -r | grep -q '^9\.'; then
|
||||
# Work around very slow 'xcodebuild -version' on 10.5. Make sure these
|
||||
|
||||
Reference in New Issue
Block a user