<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository mpbb.

</pre>
<p><a href="https://github.com/macports/mpbb/commit/7c3daba5112fcf7417c1a9d37f7fb65bace699b4">https://github.com/macports/mpbb/commit/7c3daba5112fcf7417c1a9d37f7fb65bace699b4</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 7c3daba5112fcf7417c1a9d37f7fb65bace699b4
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Wed Jun 23 20:33:16 2021 -0500

<span style='display:block; white-space:pre;color:#404040;'>    Wait before cleaning watcher if "wait" file exists
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    See: https://trac.macports.org/ticket/53587
</span>---
 mpbb-cleanup | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/mpbb-cleanup b/mpbb-cleanup
</span><span style='display:block; white-space:pre;color:#808080;'>index 433547b..027046f 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/mpbb-cleanup
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/mpbb-cleanup
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -50,6 +50,29 @@ cleanup() {
</span>         return
     fi
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+    # Provide a way to pause builds to deal with situations like
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # https://trac.macports.org/ticket/53587
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    if [[ ${BUILDBOT_BUILDERNAME:-unknown} == *-watcher ]]; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        # $option_work_dir 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;'>+        waitfile="$option_work_dir/wait"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        if [ -f "$waitfile" ]; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            echo "----> Waiting"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            waitcount=0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            while [ -f "$waitfile" ]; do
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                if [ "$waitcount" -eq 0 ]; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    echo "waiting while $waitfile exists"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    waitcount=100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    waitcount=2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    waitcount=$((waitcount - 1))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                sleep 6
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            done
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            echo
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span>     # $option_prefix is set in mpbb
     # shellcheck disable=SC2154
     disk_free_before=$(disk_free "$option_prefix")
</pre><pre style='margin:0'>

</pre>