Unverified Commit a893cc98 authored by A. Wilcox's avatar A. Wilcox
Browse files

abuild: more tar portability fixes

parent c3fd02f0
......@@ -450,15 +450,11 @@ default_unpack() {
tar -C "$srcdir" --lzip -xf "$s" || return 1;;
*.tar.lzma)
msg "Unpacking $s..."
unlzma -T 0 -c "$s" | tar -C "$srcdir" -x \
unlzma -T 0 -c "$s" | tar -C "$srcdir" -f - -x \
|| return 1;;
*.tar.xz)
msg "Unpacking $s..."
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;;
unxz --threads=0 -c "$s" | tar -C "$srcdir" -f - -x || return 1;;
*.zip)
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