[66854] trunk/base/src/registry2.0/registry_util.tcl

jmr at macports.org jmr at macports.org
Fri Apr 23 16:19:04 PDT 2010


Revision: 66854
          http://trac.macports.org/changeset/66854
Author:   jmr at macports.org
Date:     2010-04-23 16:19:02 -0700 (Fri, 23 Apr 2010)
Log Message:
-----------
silently skip running targets on empty portfiles from the registry

Modified Paths:
--------------
    trunk/base/src/registry2.0/registry_util.tcl

Modified: trunk/base/src/registry2.0/registry_util.tcl
===================================================================
--- trunk/base/src/registry2.0/registry_util.tcl	2010-04-23 23:13:03 UTC (rev 66853)
+++ trunk/base/src/registry2.0/registry_util.tcl	2010-04-23 23:19:02 UTC (rev 66854)
@@ -83,6 +83,11 @@
 ## @return   true if successful, false otherwise
 proc run_target {port target options} {
     set portspec "[$port name] @[$port version]_[$port revision][$port variants]"
+    if {[$port portfile] == ""} {
+        ui_debug "no portfile in registry for $portspec"
+        return 0
+    }
+
     if {![catch {set mport [mportopen_installed [$port name] [$port version] [$port revision] [$port variants] $options]}]} {
         if {[catch {set result [mportexec $mport $target]} result] || $result != 0} {
             global errorInfo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100423/f301a5a9/attachment.html>


More information about the macports-changes mailing list