Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/build-packages9
1 files changed, 8 insertions, 1 deletions
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