<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/f8deda690ca287edb8ad0ad39f1ec5b9047f8140">https://github.com/macports/macports-infrastructure/commit/f8deda690ca287edb8ad0ad39f1ec5b9047f8140</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit f8deda690ca287edb8ad0ad39f1ec5b9047f8140
</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 1b42489..564a618 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;'>@@ -173,18 +173,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}" \
| ${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> )
fi
</pre><pre style='margin:0'>
</pre>