<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/62834a4212c5b1c59df22221d896cb2c4aab3b44">https://github.com/macports/mpbb/commit/62834a4212c5b1c59df22221d896cb2c4aab3b44</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 62834a4212c5b1c59df22221d896cb2c4aab3b44
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Mon Nov 21 20:46:35 2016 +1100

<span style='display:block; white-space:pre;color:#404040;'>    exclude already-built ports in list-subports step
</span>---
 mpbb-list-subports | 32 +++++++++++++++++++++-----------
 1 file changed, 21 insertions(+), 11 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/mpbb-list-subports b/mpbb-list-subports
</span><span style='display:block; white-space:pre;color:#808080;'>index 8b2b8ce..44cbf58 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/mpbb-list-subports
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/mpbb-list-subports
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -37,18 +37,28 @@ print-subports() {
</span>         exclude=0
         exclude_reasons=()
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-        if [[ "$port" =~ graveyard ]]; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        # FIXME: this doesn't take selected variants into account
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        # $option_prefix and $thisdir are set in mpbb
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        # shellcheck disable=SC2154
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        if [[ -f $("${option_prefix}/bin/port-tclsh" "${thisdir}/tools/archive-path.tcl" "${port}") ]]; then
</span>             exclude=1
<span style='display:block; white-space:pre;background:#ffe0e0;'>-            exclude_reasons+=("its name contains 'graveyard'")
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-        else
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-            # $thisdir is set in mpbb
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-            # shellcheck disable=SC2154
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-            for portgroup in $("${option_prefix}/bin/port-tclsh" "${thisdir}/tools/portgroups.tcl" "$port"); do
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-                if [ "$portgroup" = "obsolete-1.0" ]; then
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-                    exclude=1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-                    exclude_reasons+=("it includes the obsolete 1.0 PortGroup")
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-                fi
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-            done
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            exclude_reasons+=("it has already been built")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        if [[ $exclude -eq 0 ]]; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            if [[ "$port" =~ graveyard ]]; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                exclude=1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                exclude_reasons+=("its name contains 'graveyard'")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                # $thisdir is set in mpbb
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                # shellcheck disable=SC2154
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                for portgroup in $("${option_prefix}/bin/port-tclsh" "${thisdir}/tools/portgroups.tcl" "$port"); do
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    if [ "$portgroup" = "obsolete-1.0" ]; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                        exclude=1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                        exclude_reasons+=("it includes the obsolete 1.0 PortGroup")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                done
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            fi
</span>         fi
 
         if [[ $exclude -eq 0 && "${os_version}" = "10.6" && "${is_64bit_capable}" = "0" ]]; then
</pre><pre style='margin:0'>

</pre>