summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorjbj <devnull@localhost>1999-09-10 23:48:56 +0000
committerjbj <devnull@localhost>1999-09-10 23:48:56 +0000
commit70a0eb1d9ba1e60e10a995604a3fa259945e06c2 (patch)
tree05cad952222b5e7b980973c499fce90ceb096f78 /build
parentf293b8e06f1d721587c9a7f1de3184f8fc8fddf7 (diff)
downloadrpm-70a0eb1d9ba1e60e10a995604a3fa259945e06c2.tar.gz
rpm-70a0eb1d9ba1e60e10a995604a3fa259945e06c2.tar.bz2
rpm-70a0eb1d9ba1e60e10a995604a3fa259945e06c2.zip
pgp and pgp5 have compatible RSA signature (#4780).
CVS patchset: 3276 CVS date: 1999/09/10 23:48:56
Diffstat (limited to 'build')
-rw-r--r--build/pack.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/build/pack.c b/build/pack.c
index b305ae36c..80e926370 100644
--- a/build/pack.c
+++ b/build/pack.c
@@ -321,12 +321,11 @@ int writeRPM(Header h, const char *fileName, int type,
}
/* Generate the signature */
- sigtype = rpmLookupSignatureType(RPMLOOKUPSIG_QUERY);
fflush(stdout);
sig = rpmNewSignature();
rpmAddSignature(sig, sigtarget, RPMSIGTAG_SIZE, passPhrase);
rpmAddSignature(sig, sigtarget, RPMSIGTAG_MD5, passPhrase);
- if (sigtype > 0) {
+ if ((sigtype = rpmLookupSignatureType(RPMLOOKUPSIG_QUERY)) > 0) {
rpmMessage(RPMMESS_NORMAL, _("Generating signature: %d\n"), sigtype);
rpmAddSignature(sig, sigtarget, sigtype, passPhrase);
}