From a893cc98b5d49f092bcfc357c2e0ac23149f9cbd Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Fri, 23 Jun 2017 09:20:21 +0000 Subject: abuild: more tar portability fixes --- abuild.in | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'abuild.in') diff --git a/abuild.in b/abuild.in index 1eae77a..5f0ba55 100644 --- a/abuild.in +++ b/abuild.in @@ -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;; -- cgit v1.2.3-70-g09d2