Changeset 3884 for trunk/base
- Timestamp:
- Nov 3, 2003, 5:36:42 PM (20 years ago)
- Location:
- trunk/base/src/port1.0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/base/src/port1.0/portfetch.tcl
r3652 r3884 63 63 default fetch.post_args {[portfetch::assemble_url ${site} ${distfile}]} 64 64 65 default fallback_mirror_site "opendarwin" 65 66 default mirror_sites.listfile {"mirror_sites.tcl"} 66 67 default mirror_sites.listpath {"${portresourcepath}/fetch/"} … … 155 156 return {} 156 157 } 157 158 158 159 set ret [list] 159 160 foreach element $portfetch::mirror_sites::sites($mirrors) { 160 if {"$subdir" == ""} { 161 162 # here we have the chance to take a look at tags, that possibly 163 # have been assigned in mirror_sites.tcl 164 set splitlist [split $element :] 165 if {[llength $splitlist] > 1} { 166 set element "[lindex $splitlist 0]:[lindex $splitlist 1]" 167 set mirror_tag "[lindex $splitlist 2]" 168 } 169 170 if {$subdir == "" && $mirror_tag != "nosubdir"} { 161 171 set subdir ${portname} 162 172 } 163 173 164 174 if {"$tag" != ""} { 165 175 eval append element "${subdir}:${tag}" 166 176 } else { … … 169 179 eval lappend ret $element 170 180 } 181 171 182 return $ret 172 183 } … … 180 191 global distdir distfiles patchfiles all_dist_files patch_sites fetch_urls \ 181 192 master_sites filespath master_sites.mirror_subdir \ 182 patch_sites.mirror_subdir 193 patch_sites.mirror_subdir fallback_mirror_site 194 195 append master_sites " ${fallback_mirror_site}" 183 196 184 197 foreach list {master_sites patch_sites} { -
trunk/base/src/port1.0/resources/fetch/mirror_sites.tcl
r3431 r3884 1 # $Id: mirror_sites.tcl,v 1. 3 2003/09/12 23:48:35fkr Exp $1 # $Id: mirror_sites.tcl,v 1.4 2003/11/03 17:36:42 fkr Exp $ 2 2 # mirror_sites.tcl 3 3 # 4 4 # List of master site classes for use in Portfiles 5 5 # Most of these are taken shamelessly from FreeBSD. 6 # 7 # Appending :nosubdir as a tag to a mirror, means that 8 # the portfetch target will NOT append a subdirectory to 9 # the mirror site. 6 10 # 7 11 # Please keep this list sorted. … … 102 106 } 103 107 108 set portfetch::mirror_sites::sites(opendarwin) { 109 http://distfiles.opendarwin.org/ 110 http://distfiles-od.opendarwin.org/:nosubdir 111 http://distfiles-msn.opendarwin.org/:nosubdir 112 } 113 104 114 set portfetch::mirror_sites::sites(perl_cpan) { 105 115 http://www.cpan.dk/CPAN/modules/by-module/
Note: See TracChangeset
for help on using the changeset viewer.