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