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

</pre>
<p><a href="https://github.com/macports/mpbb/commit/15c0772096893b394d473f983dd738aa31bac13e">https://github.com/macports/mpbb/commit/15c0772096893b394d473f983dd738aa31bac13e</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'>     new 15c0772  Only selfupdate once every 24 hours
</span>15c0772 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit 15c0772096893b394d473f983dd738aa31bac13e
</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>