[37269] trunk/base/src/port/port.tcl
raimue at macports.org
raimue at macports.org
Sun Jun 1 16:34:44 PDT 2008
Revision: 37269
http://trac.macosforge.org/projects/macports/changeset/37269
Author: raimue at 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:
--------------
trunk/base/src/port/port.tcl
Modified: trunk/base/src/port/port.tcl
===================================================================
--- 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]
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080601/e12f2087/attachment.htm
More information about the macports-changes
mailing list