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

jmr at macports.org jmr at macports.org
Sat Aug 8 19:49:16 PDT 2009


Revision: 55317
          http://trac.macports.org/changeset/55317
Author:   jmr at macports.org
Date:     2009-08-08 19:49:15 -0700 (Sat, 08 Aug 2009)
Log Message:
-----------
avoid erroring out on ports that have no version set in action_outdated

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

Modified: trunk/base/src/port/port.tcl
===================================================================
--- trunk/base/src/port/port.tcl	2009-08-09 02:44:58 UTC (rev 55316)
+++ trunk/base/src/port/port.tcl	2009-08-09 02:49:15 UTC (rev 55317)
@@ -2259,6 +2259,10 @@
             array set portinfo [lindex $res 1]
             
             # Get information about latest available version and revision
+            if {![info exists portinfo(version)]} {
+                ui_warn "$portname has no version field"
+                continue
+            }
             set latest_version $portinfo(version)
             set latest_revision 0
             if {[info exists portinfo(revision)] && $portinfo(revision) > 0} { 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090808/b1a0e068/attachment-0001.html>


More information about the macports-changes mailing list