xbps-src [extract]: use decompress utils and pipe to tar(1).
This commit is contained in:
parent
5ce6e61930
commit
92740bd661
1 changed files with 4 additions and 4 deletions
|
@ -111,22 +111,22 @@ extract_distfiles()
|
||||||
|
|
||||||
case ${cursufx} in
|
case ${cursufx} in
|
||||||
txz)
|
txz)
|
||||||
if ! command -v xz 2>&1 >/dev/null; then
|
if ! command -v unxz 2>&1 >/dev/null; then
|
||||||
msg_error "cannot find xz for extraction.\n"
|
msg_error "cannot find xz for extraction.\n"
|
||||||
fi
|
fi
|
||||||
tar xfJ $XBPS_SRCDISTDIR/$curfile -C $extractdir
|
unxz -cf $XBPS_SRCDISTDIR/$curfile | tar xf - -C $extractdir
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
msg_error "extracting $curfile into $XBPS_BUILDDIR.\n"
|
msg_error "extracting $curfile into $XBPS_BUILDDIR.\n"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
tbz)
|
tbz)
|
||||||
tar xfj $XBPS_SRCDISTDIR/$curfile -C $extractdir
|
bunzip2 -cf $XBPS_SRCDISTDIR/$curfile | tar xf - -C $extractdir
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
msg_error "extracting $curfile into $XBPS_BUILDDIR.\n"
|
msg_error "extracting $curfile into $XBPS_BUILDDIR.\n"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
tgz)
|
tgz)
|
||||||
tar xfz $XBPS_SRCDISTDIR/$curfile -C $extractdir
|
gunzip -cf $XBPS_SRCDISTDIR/$curfile | tar xf - -C $extractdir
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
msg_error "extracting $curfile into $XBPS_BUILDDIR.\n"
|
msg_error "extracting $curfile into $XBPS_BUILDDIR.\n"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue