diff options
author | jbj <devnull@localhost> | 1999-09-10 23:48:56 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 1999-09-10 23:48:56 +0000 |
commit | 70a0eb1d9ba1e60e10a995604a3fa259945e06c2 (patch) | |
tree | 05cad952222b5e7b980973c499fce90ceb096f78 /build | |
parent | f293b8e06f1d721587c9a7f1de3184f8fc8fddf7 (diff) | |
download | rpm-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.c | 3 |
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); } |