<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository macports-base.

</pre>
<p><a href="https://github.com/macports/macports-base/commit/2b1d8046db468080fc5f5b0b2d15e20acdfcd2b6">https://github.com/macports/macports-base/commit/2b1d8046db468080fc5f5b0b2d15e20acdfcd2b6</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 2b1d8046d Use dict for notificationsToPrint
</span>2b1d8046d is described below

<span style='display:block; white-space:pre;color:#808000;'>commit 2b1d8046db468080fc5f5b0b2d15e20acdfcd2b6
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Tue Feb 6 15:58:28 2024 +1100

<span style='display:block; white-space:pre;color:#404040;'>    Use dict for notificationsToPrint
</span>---
 src/port/port.tcl | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 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 3871a08af..9e79c405f 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;'>@@ -5012,8 +5012,7 @@ namespace eval portclient::notifications {
</span>     ##
     # Ports whose notifications to display; these were either installed
     # or requested to be installed.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    variable notificationsToPrint
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    array set notificationsToPrint {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    variable notificationsToPrint [dict create]
</span> 
     ##
     # Add a port to the list for printing notifications.
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -5025,7 +5024,7 @@ namespace eval portclient::notifications {
</span>     proc append {name notes} {
         variable notificationsToPrint
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-        set notificationsToPrint($name) $notes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        dict set notificationsToPrint $name $notes
</span>     }
 
     ##
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -5035,18 +5034,17 @@ namespace eval portclient::notifications {
</span>         variable notificationsToPrint
 
         # Display notes at the end of the activation phase.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-        if {[array size notificationsToPrint] > 0} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        if {[dict size $notificationsToPrint] > 0} {
</span>             ui_notice "--->  Some of the ports you installed have notes:"
<span style='display:block; white-space:pre;background:#ffe0e0;'>-            foreach name [lsort [array names notificationsToPrint]] {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-                set notes $notificationsToPrint($name)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            foreach name [lsort [dict keys $notificationsToPrint]] {
</span>                 ui_notice "  $name has the following notes:"
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-                foreach note $notes {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                foreach note [dict get $notificationsToPrint $name] {
</span>                     ui_notice [wrap $note 0 "    "]
                 }
 
                 # Clear notes that have been displayed
<span style='display:block; white-space:pre;background:#ffe0e0;'>-                unset notificationsToPrint($name)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                dict unset notificationsToPrint $name
</span>             }
         }
     }
</pre><pre style='margin:0'>

</pre>