Revision
37269
Author
raimue@macports.org
Date
2008-06-01 16:34:43 -0700 (Sun, 01 Jun 2008)

Log Message

port/port.tcl:
Output an empty field instead of nothing in port info if the requested
field is not specified for the port. This makes is easier to parse the output,
if needed.

Modified Paths

Diff

Modified: trunk/base/src/port/port.tcl (37268 => 37269)


--- trunk/base/src/port/port.tcl	2008-06-01 23:27:34 UTC (rev 37268)
+++ trunk/base/src/port/port.tcl	2008-06-01 23:34:43 UTC (rev 37269)
@@ -1354,7 +1354,9 @@
                 if {!$quiet} {
                     puts stderr "no info for '$opt'"
                 }
-                continue
+                set inf ""
+            } else {
+                set inf $portinfo($ropt)
             }
             
             # Calculate field label
@@ -1364,7 +1366,6 @@
             }
             
             # Format the data
-            set inf $portinfo($ropt)
             if { $ropt eq "maintainers" } {
                 set inf [unobscure_maintainers $inf]
             }