mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-19 01:35:24 +01:00
Support early xz/lzma decompression, and use it wherever possible
This commit is contained in:
parent
34cb6758d2
commit
65953732a0
32 changed files with 41 additions and 34 deletions
|
|
@ -307,8 +307,13 @@ extract_file() {
|
|||
*.tar.bz2)
|
||||
# Initial bzip2 built against meslibc has broken pipes
|
||||
bzip2 -dc "${DISTFILES}/${f}" | tar -xf - ${extract} ;;
|
||||
*.tar.xz)
|
||||
tar -xf "${DISTFILES}/${f}" --use-compress-program=xz ${extract} ;;
|
||||
*.tar.xz | *.tar.lzma)
|
||||
if test -e "${PREFIX}/bin/xz"; then
|
||||
tar -xf "${DISTFILES}/${f}" --use-compress-program=xz ${extract}
|
||||
else
|
||||
unxz --file "${DISTFILES}/${f}" | tar -xf - ${extract}
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
;;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue