From 90860e279ea4de38cc31a7b7a40740163567ff55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Tue, 24 Jan 2023 07:13:51 +0700 Subject: [PATCH] do-fetch: remove support for rpm contents checksum It doesn't make sense to support contents checksum here. --- common/hooks/do-fetch/00-distfiles.sh | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/common/hooks/do-fetch/00-distfiles.sh b/common/hooks/do-fetch/00-distfiles.sh index 3d9f80162b4..9ce2a1895bd 100644 --- a/common/hooks/do-fetch/00-distfiles.sh +++ b/common/hooks/do-fetch/00-distfiles.sh @@ -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")