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:
authorErich Eckner <git@eckner.net>2017-11-10 20:49:42 +0100
committerErich Eckner <git@eckner.net>2017-11-10 20:49:42 +0100
commit359ec7afa008f5f01920e6e67cb9e7fc35e6e82d (patch)
tree18b173206b0dcbd7e902bc4fb688f373fef41a54 /bin/get-package-updates
parentb4071c312d7e7195dc0d6528788f2cb909222824 (diff)
bin/get-package-updates: bail out if >1000 elements on the deletion list (currently: 269)
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"