<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/9d13f942f37dac50df5113d428c5cb231d50ada6">https://github.com/macports/mpbb/commit/9d13f942f37dac50df5113d428c5cb231d50ada6</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 9d13f94  mpbb-install-port: clean distfiles on checksum fail
</span>9d13f94 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit 9d13f942f37dac50df5113d428c5cb231d50ada6
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Wed Aug 17 23:25:35 2022 +1000

<span style='display:block; white-space:pre;color:#404040;'>    mpbb-install-port: clean distfiles on checksum fail
</span>---
 mpbb-install-port | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/mpbb-install-port b/mpbb-install-port
</span><span style='display:block; white-space:pre;color:#808080;'>index 18f083c..37d92a8 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/mpbb-install-port
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/mpbb-install-port
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -68,7 +68,7 @@ install-port() {
</span>     time_start=$(date +%s)
     # $option_prefix is set in mpbb
     # shellcheck disable=SC2154
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    if ! "${option_prefix}/bin/port" -dk fetch "$@"; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    if ! "${option_prefix}/bin/port" -d fetch "$@"; then
</span>         echo "Fetch of '$port' failed."
         # log: summary for the portwatcher
         echo "Fetching '$port' ... [ERROR] maintainers: $(get-maintainers "$port")." >> "$log_subports_progress"
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -78,6 +78,17 @@ install-port() {
</span>     fi
     # $option_prefix is set in mpbb
     # shellcheck disable=SC2154
<span style='display:block; white-space:pre;background:#e0ffe0;'>+    if ! "${option_prefix}/bin/port" -d checksum "$@"; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        echo "Checksum of '$port' failed."
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        # log: summary for the portwatcher
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        echo "Checksum '$port' ... [ERROR] maintainers: $(get-maintainers "$port")." >> "$log_subports_progress"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        # Do not add to failcache. This could be a temporary network or server problem.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        # Delete the files so they will be re-fetched next time (hopefully correctly).
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        "${option_prefix}/bin/port" -d clean --dist "$@"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        return 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # $option_prefix is set in mpbb
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # shellcheck disable=SC2154
</span>     if "${option_prefix}/bin/port" "-dkn${source_flag}" install --unrequested "$@"; then
         # Remove failcache if it exists
         failcache_success "$@"
</pre><pre style='margin:0'>

</pre>