<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository mpbb.
</pre>
<p><a href="https://github.com/macports/mpbb/commit/178797faf3f6cab3254a0142554268e5d1ce3739">https://github.com/macports/mpbb/commit/178797faf3f6cab3254a0142554268e5d1ce3739</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 178797f sort-with-subports: reduce memory use
</span>178797f is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 178797faf3f6cab3254a0142554268e5d1ce3739
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Thu Jan 7 00:03:00 2021 +1100
<span style='display:block; white-space:pre;color:#404040;'> sort-with-subports: reduce memory use
</span>---
tools/sort-with-subports.tcl | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/tools/sort-with-subports.tcl b/tools/sort-with-subports.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 9c64ab2..5e5ddfc 100755
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/tools/sort-with-subports.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/tools/sort-with-subports.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -350,6 +350,10 @@ while {[llength $todo] > 0} {
</span> }
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {$opened} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ mportclose $mport
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> if {[info exists outputports($p)] && $outputports($p) == 1} {
set canonicalnames($p) $portinfo(name)
}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -367,11 +371,13 @@ while {[llength $todo] > 0} {
</span> # real problematic example: bin:xattr:xattr
lappend portsoftdeps($p) $depname
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {![info exists portdepinfo($depname)]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {![info exists outputports($depname)]} {
</span> lappend todo $depname
<span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {$include_deps && ![info exists outputports($depname)]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set outputports($depname) 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {$include_deps} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set outputports($depname) 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set outputports($depname) 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> }
}
}
</pre><pre style='margin:0'>
</pre>