Ticket #15456: d.m.o.diff

File d.m.o.diff, 1.8 KB (added by jmroot (Joshua Root), 13 years ago)

implementation

  • src/port1.0/portfetch.tcl

     
    9494default fetch.remote_time "no"
    9595
    9696default fallback_mirror_site "macports"
     97default global_mirror_site "macports_distfiles"
    9798default mirror_sites.listfile {"mirror_sites.tcl"}
    9899default mirror_sites.listpath {"${portresourcepath}/fetch/"}
    99100
     
    218219# sites
    219220proc checksites {args} {
    220221    global patch_sites master_sites master_sites.mirror_subdir \
    221         patch_sites.mirror_subdir fallback_mirror_site env
     222        patch_sites.mirror_subdir fallback_mirror_site global_mirror_site env
    222223   
    223     append master_sites " ${fallback_mirror_site}"
     224    append master_sites " ${global_mirror_site} ${fallback_mirror_site}"
    224225    if {[info exists env(MASTER_SITE_LOCAL)]} {
    225226        set master_sites [concat $env(MASTER_SITE_LOCAL) $master_sites]
    226227    }
    227228   
     229    # we probably want to mirror downloaded patches
     230    # on distfiles.macports.org too, but we don't currently
    228231    append patch_sites " ${fallback_mirror_site}"
    229232    if {[info exists env(PATCH_SITE_LOCAL)]} {
    230233        set patch_sites [concat $env(PATCH_SITE_LOCAL) $patch_sites]
  • src/port1.0/resources/fetch/mirror_sites.tcl

     
    180180    http://svn.macports.org/repository/macports/downloads/
    181181}
    182182
     183set portfetch::mirror_sites::sites(macports_distfiles) {
     184    http://distfiles.macports.org/:mirror
     185}
     186
    183187set portfetch::mirror_sites::sites(openbsd) {
    184188    http://mirror.roothell.org/pub/OpenBSD/
    185189    http://www.mirrorservice.org/sites/ftp.openbsd.org/pub/OpenBSD/