<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/b4ad54095178c76766d6e61dfd54f33e2b5ec1c2">https://github.com/macports/macports-infrastructure/commit/b4ad54095178c76766d6e61dfd54f33e2b5ec1c2</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit b4ad54095178c76766d6e61dfd54f33e2b5ec1c2
</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 a8aba2b..3ee786d 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;'>@@ -170,16 +170,12 @@ fi
</span> if [ "${PORTS_CHANGED}" -eq 1 ]; then
     # generate platform-specific indexes
     pushd "${PORTS}" >> /dev/null
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    PIDS=()
</span>     # Intentionally allow $PLATFORMS to be split on whitespace.
     for PLATFORM in $PLATFORMS; do
         INDEX="PortIndex_darwin_${PLATFORM}"
         ${PORTINDEX} -p "macosx_${PLATFORM}" -o "${INDEX}" | ${SED} "s/^/Updating ${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>     popd
 fi
 
</pre><pre style='margin:0'>

</pre>