diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2018-04-17 21:02:28 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-04-17 21:02:28 +0000 |
commit | 6d2d09840feab0ccf900170773b5ee5034b8fd90 (patch) | |
tree | f6ca30282b52a1e30f9e15939c33b238bcafaf28 | |
parent | fd97176583ed7a13d4fd63ecbad3d436fe14d0b2 (diff) | |
download | abuild-6d2d09840feab0ccf900170773b5ee5034b8fd90.tar.gz abuild-6d2d09840feab0ccf900170773b5ee5034b8fd90.tar.bz2 abuild-6d2d09840feab0ccf900170773b5ee5034b8fd90.tar.xz abuild-6d2d09840feab0ccf900170773b5ee5034b8fd90.zip |
abuild: fix unxz with threading
busybox unxz does not support --threads/-T option
-rw-r--r-- | abuild.in | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -454,7 +454,11 @@ default_unpack() { || return 1;; *.tar.xz) msg "Unpacking $s..." - unxz -T 0 -c "$s" | tar -C "$srcdir" -x || return 1;; + local threads_opt + if [ $(readlink -f $(command -v unxz)) != "/bin/busybox" ]; then + threads_opt="--threads=0" + fi + unxz $threads_opt -c "$s" | tar -C "$srcdir" -x || return 1;; *.zip) msg "Unpacking $s..." unzip -n -q "$s" -d "$srcdir" || return 1;; |