summaryrefslogtreecommitdiff
path: root/lib/signature.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>1999-08-18 17:04:54 +0000
committerjbj <devnull@localhost>1999-08-18 17:04:54 +0000
commit5a8aceb05e843bfb523b91a904846ec23276350c (patch)
treec6af9c813283af52eb43f63ade79a6ac982f493c /lib/signature.c
parent13db81ac61d360b20ebe5934e3e11d37404b875d (diff)
downloadlibrpm-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.c7
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;