mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-07 03:45:23 +01:00
helpers.sh: fix default_src_unpack for tar 1.12
tar 1.12 does not support j for bzip2 or J for xz. Instead use --use-compress-program
This commit is contained in:
parent
a3ec56297f
commit
a6bc93b059
1 changed files with 3 additions and 5 deletions
|
|
@ -73,12 +73,10 @@ default_src_unpack() {
|
|||
source="${src_dir}/${pkg}.tar.${suf}"
|
||||
if test -e "${source}"; then
|
||||
case "${suf}" in
|
||||
gz) xtr="z" ;;
|
||||
bz2) xtr="j" ;;
|
||||
xz) xtr="J" ;;
|
||||
gz) tar -xzf "${source}" ;;
|
||||
bz2) tar -xf "${source}" --use-compress-program=bzip2 ;;
|
||||
xz) tar -xf "${source}" --use-compress-program=xz ;;
|
||||
esac
|
||||
tar "-${xtr}" -xf "${source}"
|
||||
break
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue