From 677f3c35f602804ad2df0cb3c420c3a08e49f0c9 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 24 Feb 2021 09:45:56 +0100 Subject: bin/build-packages: compress with -19 if --ultra -20 fails --- bin/build-packages | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bin') 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' -- cgit v1.2.3