<pre style='margin:0'>
Clemens Lang (neverpanic) pushed a commit to branch master
in repository macports-base.
</pre>
<p><a href="https://github.com/macports/macports-base/commit/d39d28b90fb7f5c74808cc159fd7a0e86e6f03f2">https://github.com/macports/macports-base/commit/d39d28b90fb7f5c74808cc159fd7a0e86e6f03f2</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new d39d28b9 notes: add UI_PREFIX to port name messages; hide them with -q
</span>d39d28b9 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit d39d28b90fb7f5c74808cc159fd7a0e86e6f03f2
</span>Author: Dan Villiom Podlaski Christiansen <danchr@gmail.com>
AuthorDate: Fri Jul 7 13:48:31 2017 +0200
<span style='display:block; white-space:pre;color:#404040;'> notes: add UI_PREFIX to port name messages; hide them with -q
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> This makes 'port notes installed' much more useful since you can more
</span><span style='display:block; white-space:pre;color:#404040;'> easily distinguish actual notes.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> An example:
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> $ ./port.sh notes maven\* and installed
</span><span style='display:block; white-space:pre;color:#404040;'> ---> maven3 has the following notes:
</span><span style='display:block; white-space:pre;color:#404040;'> To make maven 3.6.3 the default, please run
</span><span style='display:block; white-space:pre;color:#404040;'> sudo port select --set maven maven3
</span><span style='display:block; white-space:pre;color:#404040;'> ---> maven_select has no notes.
</span>---
src/port/port.tcl | 6 ++++--
1 file changed, 4 insertions(+), 2 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 c08e1ea2..97ea67b9 100755
</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;'>@@ -2377,6 +2377,8 @@ proc action_location { action portlist opts } {
</span>
proc action_notes { action portlist opts } {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ global UI_PREFIX
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> if {[require_portlist portlist]} {
return 1
}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -2441,12 +2443,12 @@ proc action_notes { action portlist opts } {
</span>
# Display the notes.
if {$portnotes ne {}} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_notice "$portname has the following notes:"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_notice "$UI_PREFIX $portname has the following notes:"
</span> foreach note $portnotes {
puts [wrap $note 0 " " 1]
}
} else {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- puts "$portname has no notes."
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_notice "$UI_PREFIX $portname has no notes."
</span> }
}
return $status
</pre><pre style='margin:0'>
</pre>