Fix extract-only for old tar
This commit is contained in:
parent
e6d4eccd41
commit
042deed5e5
|
@ -241,16 +241,16 @@ extract_file() {
|
||||||
if test -e "${PREFIX}/libexec/rmt"; then
|
if test -e "${PREFIX}/libexec/rmt"; then
|
||||||
# Again, we want to split out into words.
|
# Again, we want to split out into words.
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
tar --no-same-owner -xf "${DISTFILES}/${f}" -- ${extract}
|
tar --no-same-owner -xf "${DISTFILES}/${f}" ${extract}
|
||||||
else
|
else
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
case "${f}" in
|
case "${f}" in
|
||||||
*.tar.gz) tar -xzf "${DISTFILES}/${f}" -- ${extract} ;;
|
*.tar.gz) tar -xzf "${DISTFILES}/${f}" ${extract} ;;
|
||||||
*.tar.bz2)
|
*.tar.bz2)
|
||||||
# Initial bzip2 built against meslibc has broken pipes
|
# Initial bzip2 built against meslibc has broken pipes
|
||||||
bzip2 -dc "${DISTFILES}/${f}" | tar -xf - -- ${extract} ;;
|
bzip2 -dc "${DISTFILES}/${f}" | tar -xf - ${extract} ;;
|
||||||
*.tar.xz)
|
*.tar.xz)
|
||||||
tar -xf "${DISTFILES}/${f}" --use-compress-program=xz -- ${extract} ;;
|
tar -xf "${DISTFILES}/${f}" --use-compress-program=xz ${extract} ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue