[SCM] pkg-kde-jenkins packaging branch, master, updated. c020108c412f726f4b3ac49e71d4d8225cd11531

Maximiliano Curia maxy at moszumanska.debian.org
Thu May 12 10:48:33 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/pkg-kde-jenkins.git;a=commitdiff;h=a484818

The following commit has been merged in the master branch:
commit a48481851e78b760f03fd3e5265f69a7f116014f
Author: Maximiliano Curia <maxy at gnuservers.com.ar>
Date:   Wed May 11 12:20:30 2016 +0200

    Retry on hash sum mismatch
---
 scripts/build_build.sh | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/scripts/build_build.sh b/scripts/build_build.sh
index 8848842..05344f1 100755
--- a/scripts/build_build.sh
+++ b/scripts/build_build.sh
@@ -115,7 +115,18 @@ case "$DISTRIBUTION" in
         ;;
 esac
 
-sbuild "${SBUILD_ARGS[@]}" "$dsc_file"
+if ! sbuild "${SBUILD_ARGS[@]}" "$dsc_file"; then
+    # Check if it was a Hash Sum mismatch and retry, once
+    buildlog=$(find -type f -name '*.build')
+    if grep -q 'E: Failed to fetch.*Hash Sum mismatch' "$buildlog"; then
+        # Avoid confusing hooks and the like
+        rm "$buildlog"
+        sbuild "${SBUILD_ARGS[@]}" "$dsc_file"
+    else
+        # Some other error, no retry
+        exit 1
+    fi
+fi
 
 echo "Call post-build hooks"
 

-- 
pkg-kde-jenkins packaging



More information about the pkg-kde-commits mailing list