Skip to content

Commit

Permalink
Add mirror.sjtu.edu.cn for distfiles and archives
Browse files Browse the repository at this point in the history
  • Loading branch information
l2dy committed May 30, 2024
1 parent 44d5472 commit c31d803
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _resources/port1.0/fetch/archive_sites.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ set pek.cn ${letsencrypt_https_or_http}
set ykf.ca http
set ywg.ca ${letsencrypt_https_or_http}
set fcix.net http
set sjtu.edu.cn ${letsencrypt_https_only}

# Keep the primary packages server first in the list
set portfetch::mirror_sites::sites(macports_archives) [lsearch -all -glob -inline -not "
Expand All @@ -49,6 +50,7 @@ set portfetch::mirror_sites::sites(macports_archives) [lsearch -all -glob -inlin
${kmq.jp}://kmq.jp.packages.macports.org/:nosubdir
${mse.uk}://mse.uk.packages.macports.org/:nosubdir
${pek.cn}://pek.cn.packages.macports.org/macports/packages/:nosubdir
${sjtu.edu.cn}://mirror.sjtu.edu.cn/macports/packages/:nosubdir
${ywg.ca}://ywg.ca.packages.macports.org/mirror/macports/packages/:nosubdir
" {:*}]

Expand Down
2 changes: 2 additions & 0 deletions _resources/port1.0/fetch/mirror_sites.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,7 @@ set pek.cn ${letsencrypt_https_or_http}
set ykf.ca http
set ywg.ca ${letsencrypt_https_or_http}
set fcix.net http
set sjtu.edu.cn ${letsencrypt_https_only}

set portfetch::mirror_sites::sites(macports_distfiles) [lsearch -all -glob -inline -not "
${fastly}://distfiles.macports.org/:mirror
Expand All @@ -456,6 +457,7 @@ set portfetch::mirror_sites::sites(macports_distfiles) [lsearch -all -glob -inli
${kmq.jp}://kmq.jp.distfiles.macports.org/:mirror
${mse.uk}://mse.uk.distfiles.macports.org/:mirror
${pek.cn}://pek.cn.distfiles.macports.org/macports/distfiles/:mirror
${sjtu.edu.cn}://mirror.sjtu.edu.cn/macports/distfiles/:mirror
${ykf.ca}://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/:mirror
${ywg.ca}://ywg.ca.distfiles.macports.org/mirror/macports/distfiles/:mirror
" {:*}]
Expand Down

0 comments on commit c31d803

Please sign in to comment.