Source
18
18
# CI is not interactive
19
19
echo "ui_interactive no" | sudo tee -a /opt/local/etc/macports/macports.conf >/dev/null
20
20
# Only download from the CDN, not the mirrors
21
21
echo "host_blacklist *.distfiles.macports.org *.packages.macports.org" | sudo tee -a /opt/local/etc/macports/macports.conf >/dev/null
22
22
# Try downloading archives from the private server after trying the public server
23
23
echo "archive_site_local https://packages.macports.org/:tbz2 https://packages-private.macports.org/:tbz2" | sudo tee -a /opt/local/etc/macports/macports.conf >/dev/null
24
24
# Prefer to get archives from the public server instead of the private server
25
25
# preferred_hosts has no effect on archive_site_local
26
26
# See https://trac.macports.org/ticket/57720
27
27
#echo "preferred_hosts packages.macports.org" | sudo tee -a /opt/local/etc/macports/macports.conf >/dev/null
28
-
# Fix bug in MacPorts 2.5.4 that makes archive_site_local not work at all
29
-
# See https://trac.macports.org/ticket/57717
30
-
sudo sed -E -i "" "s,{} ({} ARCHIVE_SITE_LOCAL),\1," /opt/local/libexec/macports/lib/package1.0/portarchivefetch.tcl
31
-
# Fix bug in MacPorts 2.5.4 that mishandles multiple URLs in archive_site_local
32
-
# See https://trac.macports.org/ticket/57718
33
-
sudo sed -E -i "" 's,\[list (\$env\(\$senv\))\],\1,' /opt/local/libexec/macports/lib/port1.0/fetch_common.tcl
34
28
35
29
# Update PortIndex
36
30
rsync --no-motd -zvl "rsync://rsync.macports.org/macports/release/ports/PortIndex_darwin_${OS_MAJOR}_i386/PortIndex*" .
37
31
git remote add macports https://github.com/macports/macports-ports.git
38
32
git fetch macports master
39
33
## Run portindex on recent commits if PR is newer
40
34
git checkout -qf macports/master~4
41
35
git checkout -qf -
42
36
git checkout -qf "$(git merge-base macports/master HEAD)"
43
37
## Ignore portindex errors on common ancestor