From 09aae4b7a5891ad738754a22f956c83911d1d9eb Mon Sep 17 00:00:00 2001 From: Nezmer Date: Wed, 2 Jun 2010 19:40:38 -0500 Subject: makepkg: Extract from any file bsdtar can recognize If "file -bizL" does not return a supported type, check if the file is recognized by bsdtar and if yes extract from it. Dan: use '-q' option to prevent needing to seek the entire archive. Signed-off-by: Nezmer Signed-off-by: Dan McGee Signed-off-by: Allan McRae --- scripts/makepkg.sh.in | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 6763b6e0..678359f8 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -682,9 +682,12 @@ extract_sources() { *) continue;; esac ;; *) - # Don't know what to use to extract this file, - # skip to the next file - continue;; + # See if bsdtar can recognize the file + if bsdtar -tf "$file" -q '*' &>/dev/null; then + cmd="bsdtar" + else + continue + fi ;; esac local ret=0 -- cgit v1.2.3-24-g4f1b