index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
-rwxr-xr-x | bin/build-packages | 9 |
diff --git a/bin/build-packages b/bin/build-packages index a930005..52f33d8 100755 --- a/bin/build-packages +++ b/bin/build-packages @@ -162,7 +162,14 @@ if [ "${timeout}" -ne 0 ]; then timeout=$((timeout+$(date +%s))) fi -while [ "${count}" -ne 0 ]; do +checksum=$( + calculate_script_checksum +) + +# When this script or a script in lib/ got updated, we do not request +# any new assignments. This script should rather exit and be restarted. +while [ "${count}" -ne 0 ] && \ + [ "$(calculate_script_checksum)" = "${checksum}" ]; do if [ "${timeout}" -ne 0 ] && [ "${timeout}" -lt "$(date +%s)" ]; then |