Commit 6d2d0984 authored by Natanael Copa's avatar Natanael Copa
Browse files

abuild: fix unxz with threading

busybox unxz does not support --threads/-T option
parent fd971765
......@@ -454,7 +454,11 @@ default_unpack() {
|| return 1;;
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
unxz $threads_opt -c "$s" | tar -C "$srcdir" -x || return 1;;
msg "Unpacking $s..."
unzip -n -q "$s" -d "$srcdir" || return 1;;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment