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 <git@nezmer.info> Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
c71fe7db42
commit
09aae4b7a5
1 changed files with 6 additions and 3 deletions
|
@ -682,9 +682,12 @@ extract_sources() {
|
||||||
*) continue;;
|
*) continue;;
|
||||||
esac ;;
|
esac ;;
|
||||||
*)
|
*)
|
||||||
# Don't know what to use to extract this file,
|
# See if bsdtar can recognize the file
|
||||||
# skip to the next file
|
if bsdtar -tf "$file" -q '*' &>/dev/null; then
|
||||||
continue;;
|
cmd="bsdtar"
|
||||||
|
else
|
||||||
|
continue
|
||||||
|
fi ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
local ret=0
|
local ret=0
|
||||||
|
|
Loading…
Add table
Reference in a new issue