mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-17 16:55:25 +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}"
|
source="${src_dir}/${pkg}.tar.${suf}"
|
||||||
if test -e "${source}"; then
|
if test -e "${source}"; then
|
||||||
case "${suf}" in
|
case "${suf}" in
|
||||||
gz) xtr="z" ;;
|
gz) tar -xzf "${source}" ;;
|
||||||
bz2) xtr="j" ;;
|
bz2) tar -xf "${source}" --use-compress-program=bzip2 ;;
|
||||||
xz) xtr="J" ;;
|
xz) tar -xf "${source}" --use-compress-program=xz ;;
|
||||||
esac
|
esac
|
||||||
tar "-${xtr}" -xf "${source}"
|
|
||||||
break
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue