Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/build-packages
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2022-02-20 19:46:31 +0100
committerErich Eckner <git@eckner.net>2022-02-20 19:46:31 +0100
commita5c01c9104e6566e5546f938a513445b06670963 (patch)
tree73b48b22e96841b466af06c0fa3a6e992b15a3fc /bin/build-packages
parent6b6496fcbbe42336405e6054519e95b2e183f750 (diff)
bin/build-packages: tell, what packages were expected
Diffstat (limited to 'bin/build-packages')
-rwxr-xr-xbin/build-packages18
1 files changed, 13 insertions, 5 deletions
diff --git a/bin/build-packages b/bin/build-packages
index 9c5ab03..8405579 100755
--- a/bin/build-packages
+++ b/bin/build-packages
@@ -730,11 +730,19 @@ while [ "${count}" -ne 0 ] && \
} | \
sort | \
uniq -u | \
- while read -r unexpected_package; do
- >&2 printf 'removing unexpected build artifact "%s"\n' \
- "${unexpected_package}"
- rm "${unexpected_package}"*
- done
+ {
+ removed_something_unexpected=false
+ while read -r unexpected_package; do
+ >&2 printf 'removing unexpected build artifact "%s"\n' \
+ "${unexpected_package}"
+ rm "${unexpected_package}"*
+ removed_something_unexpected=true
+ done
+ if "${removed_something_unexpected}"; then
+ >&2 printf 'I was only expecting:\n%s\n' \
+ "${expected_packages}"
+ fi
+ }
fi
>&2 printf 'signing package(s)\n'
find . -maxdepth 1 -type f -name '*.pkg.tar.zst' \