[75017] trunk/base/src/port1.0/portdistfiles.tcl

jmr at macports.org jmr at macports.org
Tue Jan 11 16:00:38 PST 2011


Revision: 75017
          http://trac.macports.org/changeset/75017
Author:   jmr at macports.org
Date:     2011-01-11 16:00:32 -0800 (Tue, 11 Jan 2011)
Log Message:
-----------
handle running distfiles target on ports with no master_sites

Modified Paths:
--------------
    trunk/base/src/port1.0/portdistfiles.tcl

Modified: trunk/base/src/port1.0/portdistfiles.tcl
===================================================================
--- trunk/base/src/port1.0/portdistfiles.tcl	2011-01-11 20:27:26 UTC (rev 75016)
+++ trunk/base/src/port1.0/portdistfiles.tcl	2011-01-12 00:00:32 UTC (rev 75017)
@@ -56,7 +56,7 @@
     global UI_PREFIX master_sites checksums_array portdbpath dist_subdir
     
     # give up on ports that do not provide URLs
-    if {$master_sites == "{}"} {
+    if {![info exists master_sites] || $master_sites == "{}"} {
         return 0
     }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110111/8c92021b/attachment.html>


More information about the macports-changes mailing list