diff options
-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;; |