abuild: fix unxz with threading
busybox unxz does not support --threads/-T option
This commit is contained in:
parent
fd97176583
commit
6d2d09840f
@ -454,7 +454,11 @@ default_unpack() {
|
|||||||
|| return 1;;
|
|| return 1;;
|
||||||
*.tar.xz)
|
*.tar.xz)
|
||||||
msg "Unpacking $s..."
|
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)
|
*.zip)
|
||||||
msg "Unpacking $s..."
|
msg "Unpacking $s..."
|
||||||
unzip -n -q "$s" -d "$srcdir" || return 1;;
|
unzip -n -q "$s" -d "$srcdir" || return 1;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user