index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2022-02-20 19:46:31 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2022-02-20 19:46:31 +0100 |
commit | a5c01c9104e6566e5546f938a513445b06670963 (patch) | |
tree | 73b48b22e96841b466af06c0fa3a6e992b15a3fc /bin/build-packages | |
parent | 6b6496fcbbe42336405e6054519e95b2e183f750 (diff) |
-rwxr-xr-x | bin/build-packages | 18 |
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' \ |