<pre style='margin:0'>
Lawrence Velázquez (larryv) pushed a commit to branch mprsyncup-polish
in repository macports-infrastructure.

</pre>
<p><a href="https://github.com/macports/macports-infrastructure/commit/26efb8014b3275045d50d50d9745acc4606893ea">https://github.com/macports/macports-infrastructure/commit/26efb8014b3275045d50d50d9745acc4606893ea</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 26efb8014b3275045d50d50d9745acc4606893ea
</span>Author: Lawrence Velázquez <larryv@macports.org>
AuthorDate: Wed Nov 16 17:42:05 2016 -0500

<span style='display:block; white-space:pre;color:#404040;'>    mprsyncup: Wait on all children instead of listing them
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    POSIX shell doesn't understand arrays. We can avoid them by waiting on
</span><span style='display:block; white-space:pre;color:#404040;'>    all child processes instead of collecting their PIDs.
</span>---
 jobs/mprsyncup | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/jobs/mprsyncup b/jobs/mprsyncup
</span><span style='display:block; white-space:pre;color:#808080;'>index d5f3e71..d7ddc84 100755
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/jobs/mprsyncup
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/jobs/mprsyncup
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -174,18 +174,14 @@ if [ "${PORTS_CHANGED}" -eq 1 ]; then
</span>     (
         # generate platform-specific indexes
         cd "${PORTS}"
<span style='display:block; white-space:pre;background:#ffe0e0;'>-        PIDS=()
</span>         # Intentionally split PLATFORMS on whitespace.
         for PLATFORM in $PLATFORMS; do
             INDEX="PortIndex_darwin_${PLATFORM}"
             ${PORTINDEX} -p "macosx_${PLATFORM}" -o "${INDEX}" \
                 | ${AWK} '{ print "Updating " idx ":\t" $0 }' idx="$INDEX" \
                 | expand -t 40,48,56,64,72,80 &
<span style='display:block; white-space:pre;background:#ffe0e0;'>-            PIDS+=($!)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-        done
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-        for PID in ${PIDS[*]}; do
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-            wait ${PID}
</span>         done
<span style='display:block; white-space:pre;background:#e0ffe0;'>+        wait
</span>     )
 fi
 
</pre><pre style='margin:0'>

</pre>