do-extract: extract rpm with bsdtar, too
This commit is contained in:
committed by
Đoàn Trần Công Danh
parent
7436cebdd5
commit
1b2519f765
@@ -111,14 +111,12 @@ hook() {
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
rpm)
|
rpm)
|
||||||
if command -v rpmextract &>/dev/null; then
|
if ! command -v bsdtar &>/dev/null; then
|
||||||
cd "$extractdir"
|
msg_error "$pkgver: cannot find bsdtar for extraction.\n"
|
||||||
rpmextract $srcdir/$curfile
|
fi
|
||||||
if [ $? -ne 0 ]; then
|
bsdtar -x --no-same-permissions --no-same-owner -f $srcdir/$curfile -C "$extractdir"
|
||||||
msg_error "$pkgver: extracting $curfile into $XBPS_BUILDDIR.\n"
|
if [ $? -ne 0 ]; then
|
||||||
fi
|
msg_error "$pkgver: extracting $curfile into $XBPS_BUILDDIR.\n"
|
||||||
else
|
|
||||||
msg_error "$pkgver: cannot find rpmextract for extraction.\n"
|
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
deb)
|
deb)
|
||||||
|
|||||||
Reference in New Issue
Block a user