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:
Diffstat (limited to 'bin/build-packages')
-rwxr-xr-xbin/build-packages6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/build-packages b/bin/build-packages
index 639e6e5..75cdbba 100755
--- a/bin/build-packages
+++ b/bin/build-packages
@@ -679,8 +679,12 @@ while [ "${count}" -ne 0 ] && \
# machine, if need arises in the future). Note, that it is no
# error, if the above build command already produced a
# compressed package.
+ # Since --ultra -20 seems too much for our i486 build vms, we
+ # silently fall back to -19 (without --ultra) if the higher
+ # level fails.
find . -maxdepth 1 -type f -name '*.pkg.tar' \
- -execdir zstd --rm -T0 --ultra -20 '{}' -o '{}.zst' \;
+ -not -execdir zstd --rm -T0 --ultra -20 '{}' -o '{}.zst' \; \
+ -execdir zstd --rm -T0 -19 '{}' -o '{}.zst' \;
# package files, that still exist, threw an error upon compression
errors=$(
find . -maxdepth 1 -type f -name '*.pkg.tar'