<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch selfupdate-wait
in repository mpbb.

</pre>
<p><a href="https://github.com/macports/mpbb/commit/1c3889ece93caeebe9d6f198bf76621048c3116c">https://github.com/macports/mpbb/commit/1c3889ece93caeebe9d6f198bf76621048c3116c</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 1c3889ece93caeebe9d6f198bf76621048c3116c
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Sun May 26 12:50:13 2019 +1000

<span style='display:block; white-space:pre;color:#404040;'>    Only selfupdate once every 24 hours
</span>---
 mpbb-selfupdate | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/mpbb-selfupdate b/mpbb-selfupdate
</span><span style='display:block; white-space:pre;color:#808080;'>index 1c52e43..49ce1e3 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/mpbb-selfupdate
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/mpbb-selfupdate
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -51,5 +51,9 @@ selfupdate() {
</span>         rm -rf ${macports_distfile} ${macports_distname} || return
     fi
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    "${option_prefix}/bin/port" -d selfupdate --nosync || return
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # selfupdate at most once every 24 hours
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    if [ ! -f selfupdate.timestamp -o $(($(date +%s) - $(date -r selfupdate.timestamp +%s))) -gt 86400 ]; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        "${option_prefix}/bin/port" -d selfupdate --nosync || return
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        touch selfupdate.timestamp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    fi
</span> }
</pre><pre style='margin:0'>

</pre>