diff options
author | jbj <devnull@localhost> | 1999-08-18 17:04:54 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 1999-08-18 17:04:54 +0000 |
commit | 5a8aceb05e843bfb523b91a904846ec23276350c (patch) | |
tree | c6af9c813283af52eb43f63ade79a6ac982f493c /lib/signature.c | |
parent | 13db81ac61d360b20ebe5934e3e11d37404b875d (diff) | |
download | librpm-tizen-5a8aceb05e843bfb523b91a904846ec23276350c.tar.gz librpm-tizen-5a8aceb05e843bfb523b91a904846ec23276350c.tar.bz2 librpm-tizen-5a8aceb05e843bfb523b91a904846ec23276350c.zip |
fix: use pgp5 rather than pgp-2.6.3 if both are in %_pgpbin (#4564).
CVS patchset: 3237
CVS date: 1999/08/18 17:04:54
Diffstat (limited to 'lib/signature.c')
-rw-r--r-- | lib/signature.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/signature.c b/lib/signature.c index ccf1972fe..2e01af030 100644 --- a/lib/signature.c +++ b/lib/signature.c @@ -85,11 +85,10 @@ const char * rpmDetectPGPVersion(int sigTag) } sprintf(pgpvbin, "%sv", pgpbin); - /* XXX Prefer pgp-2.6.3 over pgp5 */ - if (stat(pgpbin, &statbuf) == 0) - pgp_version = 26; - else if (stat(pgpvbin, &statbuf) == 0) + if (stat(pgpvbin, &statbuf) == 0) pgp_version = 50; + else if (stat(pgpbin, &statbuf) == 0) + pgp_version = 26; else pgp_version = -1; |