From 6d2d09840feab0ccf900170773b5ee5034b8fd90 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 17 Apr 2018 21:02:28 +0000 Subject: abuild: fix unxz with threading busybox unxz does not support --threads/-T option --- abuild.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/abuild.in b/abuild.in index a10bca3..67a596f 100644 --- a/abuild.in +++ b/abuild.in @@ -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;; -- cgit v1.2.3