[50865] trunk/base/src/port/port.tcl

jmr at macports.org jmr at macports.org
Mon May 11 15:25:09 PDT 2009


Revision: 50865
          http://trac.macports.org/changeset/50865
Author:   jmr at macports.org
Date:     2009-05-11 15:25:09 -0700 (Mon, 11 May 2009)
Log Message:
-----------
When processing actions, don't error out on ports that are installed but not available in the tree. (#19253)

Modified Paths:
--------------
    trunk/base/src/port/port.tcl

Modified: trunk/base/src/port/port.tcl
===================================================================
--- trunk/base/src/port/port.tcl	2009-05-11 21:53:24 UTC (rev 50864)
+++ trunk/base/src/port/port.tcl	2009-05-11 22:25:09 UTC (rev 50865)
@@ -2824,7 +2824,13 @@
                 break_softcontinue "lookup of portname $portname failed: $result" 1 status
             }
             if {[llength $res] < 2} {
-                break_softcontinue "Port $portname not found" 1 status
+                # don't error for ports that are installed but not in the tree
+                if {[registry::entry_exists_for_name $portname]} {
+                    ui_warn "Skipping $portname (not in the ports tree)"
+                    continue
+                } else {
+                    break_softcontinue "Port $portname not found" 1 status
+                }
             }
             array unset portinfo
             array set portinfo [lindex $res 1]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090511/ebf3f280/attachment.html>


More information about the macports-changes mailing list