[52800] trunk/base/src/port1.0/portdistfiles.tcl
toby at macports.org
toby at macports.org
Tue Jun 23 03:27:27 PDT 2009
Revision: 52800
http://trac.macports.org/changeset/52800
Author: toby at macports.org
Date: 2009-06-23 03:27:26 -0700 (Tue, 23 Jun 2009)
Log Message:
-----------
fix distfiles target (i think)
Modified Paths:
--------------
trunk/base/src/port1.0/portdistfiles.tcl
Modified: trunk/base/src/port1.0/portdistfiles.tcl
===================================================================
--- trunk/base/src/port1.0/portdistfiles.tcl 2009-06-23 08:54:11 UTC (rev 52799)
+++ trunk/base/src/port1.0/portdistfiles.tcl 2009-06-23 10:27:26 UTC (rev 52800)
@@ -53,7 +53,7 @@
}
proc portdistfiles::distfiles_main {args} {
- global UI_PREFIX master_sites fetch_urls url_var distfile checksums_array
+ global UI_PREFIX master_sites checksums_array
# give up on ports that do not provide URLs
if {$master_sites == "{}"} {
@@ -61,13 +61,15 @@
}
# from portfetch... process the sites, files and patches
- portfetch::checkfiles
+ set fetch_urls {}
+ portfetch::checkfiles fetch_urls
# get checksum data from the portfile and parse it
set checksums_str [option checksums]
set result [portchecksum::parse_checksums $checksums_str]
- foreach {url_var distfile} $portfetch::fetch_urls {
+ foreach {url_var distfile} $fetch_urls {
+ global portfetch::urlmap
ui_msg "\[$distfile\]"
@@ -79,13 +81,12 @@
}
# determine sites to download from
- namespace import ::portfetch::$url_var
- if {![info exists $url_var]} {
- set url_var master_sites
+ if {![info exists urlmap($url_var)]} {
+ set urlmap($url_var) $master_sites
}
# determine URLs to download
- foreach site [set $url_var] {
+ foreach site $urlmap($url_var) {
set file_url [portfetch::assemble_url $site $distfile]
ui_msg " $file_url"
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090623/f17ec55c/attachment.html>
More information about the macports-changes
mailing list