diff options
author | Erich Eckner <git@eckner.net> | 2020-01-16 08:49:03 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-01-16 08:49:03 +0100 |
commit | a98f653d85f789d966962fd7b13f67eac32877f9 (patch) | |
tree | 462c812d7e0eee4b9c08af5dae9dea1476c33fb2 | |
parent | 21df6feeb8dfb819826a8efa19b46db00649a8ac (diff) | |
download | archlinuxewe-a98f653d85f789d966962fd7b13f67eac32877f9.tar.xz |
archPackagesUpdate: leave compression on armv6h,armv7h and aarch64 to the x86_64 caller
-rwxr-xr-x | archPackagesUpdate | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/archPackagesUpdate b/archPackagesUpdate index 000158134..9255113bc 100755 --- a/archPackagesUpdate +++ b/archPackagesUpdate @@ -579,16 +579,29 @@ if ${aufRechenknecht}; then "${arch}" \ "${cleanChroot}" \ "${log} ${checkMakepkg}" - printf 'tar -czf - *.pkg.tar.zst' + printf 'tar -czf - *.pkg.tar' [ -n "${log}" ] && \ - printf ' *.pkg.tar.zst-*.log' + printf ' *.pkg.tar-*.log' printf '\n' )" \ < "${tmpDir}/${paket}-${vers}.src.tar.gz" \ > "paket.tar.gz" err[${i}]=$? if [ ${err[${i}]} -eq 0 ]; then - tar -xzf paket.tar.gz + tar -xzvf paket.tar.gz \ + | sed ' + s/\.pkg\.tar$/\0.zst/ + t + s/\(\.pkg\.tar\)\(-.*\.log\)$/\1.zst\2/ + t + s/^.*$/unknown file "\0" in packages tar cannot be compressed/ + w /dev/stderr + d + ' \ + | while read -r file cfile; do + zstd "${file}" -o "${cfile}" + rm "${file}" + done fi fi ;; |