Blob Blame History Raw
From 5e11a52627882efe6a15622ec256835a821e3eff Mon Sep 17 00:00:00 2001
From: Igor Kanyuka <ikanyuka@fb.com>
Date: Thu, 29 Apr 2021 18:24:48 -0700
Subject: [PATCH 13/33] RPMTAG_PAYLOADDIGESTALT is not backported here, don't
 check if it's in the header

---
 sign/rpmgensig.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sign/rpmgensig.c b/sign/rpmgensig.c
index 4903a4de1..a6e37e71b 100644
--- a/sign/rpmgensig.c
+++ b/sign/rpmgensig.c
@@ -532,8 +532,7 @@ static int rpmSign(const char *rpm, int deleting, int flags)
     }
 
     /* Always add V3 signatures if no payload digest present */
-    if (!(headerIsEntry(h, RPMTAG_PAYLOADDIGEST) ||
-	  headerIsEntry(h, RPMTAG_PAYLOADDIGESTALT))) {
+    if (!headerIsEntry(h, RPMTAG_PAYLOADDIGEST)) {
 	flags |= RPMSIGN_FLAG_RPMV3;
     }
 
-- 
2.27.0