Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/get-package-updates
diff options
context:
space:
mode:
Diffstat (limited to 'bin/get-package-updates')
-rwxr-xr-xbin/get-package-updates10
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/get-package-updates b/bin/get-package-updates
index 2e76f5e..68efa0e 100755
--- a/bin/get-package-updates
+++ b/bin/get-package-updates
@@ -474,6 +474,16 @@ else
rm "${work_dir}/tsort.error"
fi
+deletion_list_count=$(
+ wc -l < \
+ "${work_dir}/deletion-list.new"
+)
+if [ "${deletion_list_count}" -gt 1000 ]; then
+ >&2 printf 'There are %s > 1000 packages on the deletion-list. This does not seem right.\n' \
+ "${deletion_list_count}"
+ exit 3
+fi
+
# Move the .new-files to the actual files
rm -rf --one-file-system "${work_dir}/build-list.loops"