rpm/rpm-5.4.10-fix-addsign-check.patch

20 lines
664 B
Diff

diff -ur rpm-5.4.10/build/pack.c rpm-5.4.10.new/build/pack.c
--- rpm-5.4.10/build/pack.c 2012-05-20 00:24:58.000000000 +0400
+++ rpm-5.4.10.new/build/pack.c 2015-04-07 17:54:36.410943594 +0300
@@ -649,7 +649,7 @@
char buf[BUFSIZ];
Header h;
Header sigh = NULL;
- int addsig = 0;
+ int addsig = (passPhrase && passPhrase[0]);
int isSource;
rpmRC rc = RPMRC_OK;
size_t nbr;
@@ -859,7 +859,6 @@
(void) rpmAddSignature(sigh, sigtarget, RPMSIGTAG_MD5, passPhrase);
sigtag = RPMSIGTAG_GPG;
- addsig = (passPhrase && passPhrase[0]);
if (addsig) {
rpmlog(RPMLOG_NOTICE, _("Generating signature: %d\n"), sigtag);