From 3e7091c27b8829c017c1deae17ef5c1c47013e64 Mon Sep 17 00:00:00 2001 From: Yanase Yuki Date: Tue, 13 Aug 2024 18:43:58 +0900 Subject: [PATCH] fix hash check trusted_hash = upper case, archive_hash = lower case We need conversion --- p2pool.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2pool.spec b/p2pool.spec index d555a73..f6a583d 100644 --- a/p2pool.spec +++ b/p2pool.spec @@ -40,7 +40,7 @@ gpgv --keyring ./SChernykh-keyring.gpg %{SOURCE1} # calc hashes trusted_hash=$(sed -n '/Name:\sp2pool_source.tar.xz/,/SHA256:\s/p' %{SOURCE1} | tail -c 65 | head -c 64) -archive_hash=$(sha256sum %{SOURCE0} | head -c 64) +archive_hash=$(sha256sum %{SOURCE0} | head -c 64 | tr '[:lower:]' '[:upper:]') # check against correct hash if ! [ $trusted_hash = $archive_hash ]; then