diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2017-08-16 16:44:16 +0200 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2017-08-16 16:49:09 +0200 |
commit | d7a49e44094a3163edc484618317edfadd43ada6 (patch) | |
tree | c394b48aa7ac58c04790442b3ac656f435b7307b | |
parent | 4cb2fcc5bf443de9f3f05fe085c42a317101321b (diff) | |
download | perl-URPM-d7a49e44094a3163edc484618317edfadd43ada6.tar perl-URPM-d7a49e44094a3163edc484618317edfadd43ada6.tar.gz perl-URPM-d7a49e44094a3163edc484618317edfadd43ada6.tar.bz2 perl-URPM-d7a49e44094a3163edc484618317edfadd43ada6.tar.xz perl-URPM-d7a49e44094a3163edc484618317edfadd43ada6.zip |
add support to rpm-4.14
thus breaking support for rpm <= 4.13
-rw-r--r-- | URPM.xs | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -3030,11 +3030,11 @@ Urpm_parse_rpm(urpm, filename, ...) else if (SvIV(ST(i+1))) { if (len == 5) { if (!memcmp(s, "nopgp", 5)) - vsflags |= (RPMVSF_NOSHA1 | RPMVSF_NOSHA1HEADER); + vsflags |= (RPMVSF_NOPAYLOAD | RPMVSF_NOSHA1HEADER); else if (!memcmp(s, "nogpg", 5)) - vsflags |= (RPMVSF_NOSHA1 | RPMVSF_NOSHA1HEADER); + vsflags |= (RPMVSF_NOPAYLOAD | RPMVSF_NOSHA1HEADER); else if (!memcmp(s, "nomd5", 5)) - vsflags |= (RPMVSF_NOMD5 | RPMVSF_NOMD5HEADER); + vsflags |= (RPMVSF_NOMD5 | RPMVSF_NOSHA256HEADER); else if (!memcmp(s, "norsa", 5)) vsflags |= (RPMVSF_NORSA | RPMVSF_NORSAHEADER); else if (!memcmp(s, "nodsa", 5)) @@ -3122,7 +3122,7 @@ Urpm_get_gpg_fingerprint(filename) pktlen = 0; else { unsigned int i; - pgpPubkeyFingerprint (pkt, pktlen, fingerprint); + pgpPubkeyKeyID (pkt, pktlen, fingerprint); for (i = 0; i < sizeof (pgpKeyID_t); i++) sprintf(&fingerprint_str[i*2], "%02x", fingerprint[i]); } |