do-fetch: remove support for rpm contents checksum

It doesn't make sense to support contents checksum here.
This commit is contained in:
Đoàn Trần Công Danh 2023-01-24 07:13:51 +07:00
parent d1bfb96195
commit 90860e279e
1 changed files with 1 additions and 8 deletions

View File

@ -54,14 +54,7 @@ contents_cksum() {
fi
;;
rpm)
if command -v rpmextract &>/dev/null; then
cksum=$($XBPS_DIGEST_CMD <(rpm2cpio "$curfile" | $TAR_CMD -x -f -))
if [ $? -ne 0 ]; then
msg_error "$pkgver: extracting $curfile to pipe.\n"
fi
else
msg_error "$pkgver: cannot find rpmextract for extraction.\n"
fi
msg_error "$pkgver: contents checksum not support for rpm.\n"
;;
txt)
cksum=$($XBPS_DIGEST_CMD "$curfile")