<pre style='margin:0'>
Rainer Müller (raimue) pushed a commit to branch release-2.3
in repository macports-base.
</pre>
<p><a href="https://github.com/macports/macports-base/commit/eef939c5824fd50234cb1119bc8b4bb24b067637">https://github.com/macports/macports-base/commit/eef939c5824fd50234cb1119bc8b4bb24b067637</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit eef939c5824fd50234cb1119bc8b4bb24b067637
</span>Author: Rainer Müller <raimue@macports.org>
AuthorDate: Thu Nov 24 20:57:01 2016 +0100
<span style='display:block; white-space:pre;color:#404040;'> port info: Print subfield labels only for --pretty
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> See: https://trac.macports.org/ticket/52928
</span><span style='display:block; white-space:pre;color:#404040;'> (cherry picked from commit 3f372a57b4066ad32b75b6fe4a0995c89e07ebcd)
</span>---
src/port/port.tcl | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/port/port.tcl b/src/port/port.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 0a57e1b..7a475e5 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/port/port.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/port/port.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -2189,24 +2189,30 @@ proc action_info { action portlist opts } {
</span> array set maintainer $serialized
if {[info exists maintainer(email)]} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- lappend parts "Email: $maintainer(email)"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set item [expr {$pretty_print ? "Email: " : ""}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ append item $maintainer(email)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend parts $item
</span> }
if {[info exists maintainer(github)]} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- lappend parts "GitHub: $maintainer(github)"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set item [expr {$pretty_print ? "GitHub: " : ""}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ append item $maintainer(github)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend parts $item
</span> }
if {[info exists maintainer(keyword)]} {
switch $maintainer(keyword) {
nomaintainer {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- lappend parts "none"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend parts [expr {$pretty_print ? "none" : ""}]
</span> }
openmaintainer {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- lappend parts "Policy: openmaintainer"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set item [expr {$pretty_print ? "Policy: " : ""}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ append item "openmaintainer"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend parts $item
</span> }
}
}
array unset maintainer
<span style='display:block; white-space:pre;background:#ffe0e0;'>- lappend infresult [join $parts ", "]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend infresult [join $parts [expr {$pretty_print ? ", " : " "}]]
</span> }
set inf $infresult
}
</pre><pre style='margin:0'>
</pre>