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.
--- 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]
}