aboutsummaryrefslogtreecommitdiffstats
path: root/URPM
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mandriva.org>2009-10-03 14:56:00 +0000
committerPascal Terjan <pterjan@mandriva.org>2009-10-03 14:56:00 +0000
commitfe2e3fa3ea7723882065dfc2fd82b3fc16bafe79 (patch)
treeb826fbb8408bc55ae34ac16a3c278804f3c6e00a /URPM
parent1d28ebc78b06429b701cccee7eb90ecfedc403c9 (diff)
downloadperl-URPM-fe2e3fa3ea7723882065dfc2fd82b3fc16bafe79.tar
perl-URPM-fe2e3fa3ea7723882065dfc2fd82b3fc16bafe79.tar.gz
perl-URPM-fe2e3fa3ea7723882065dfc2fd82b3fc16bafe79.tar.bz2
perl-URPM-fe2e3fa3ea7723882065dfc2fd82b3fc16bafe79.tar.xz
perl-URPM-fe2e3fa3ea7723882065dfc2fd82b3fc16bafe79.zip
fix lookup of existing pubkeys (#53710)
Diffstat (limited to 'URPM')
-rw-r--r--URPM/Signature.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/URPM/Signature.pm b/URPM/Signature.pm
index 71bccc0..967dbf6 100644
--- a/URPM/Signature.pm
+++ b/URPM/Signature.pm
@@ -62,7 +62,7 @@ sub import_needed_pubkeys_from_file {
my @keys = parse_pubkeys_($db);
my $keyid = substr get_gpg_fingerprint($pubkey_file), 8;
- my ($kv) = grep { ($keyid == $_->{id}) } @keys;
+ my ($kv) = grep { ($keyid eq $_->{id}) } @keys;
my $imported;
if (!$kv) {
if (!import_pubkey_file($db, $pubkey_file)) {
@@ -72,7 +72,7 @@ sub import_needed_pubkeys_from_file {
$imported = 1;
}
@keys = parse_pubkeys_($db);
- ($kv) = grep { ($keyid == $_->{id}) } @keys;
+ ($kv) = grep { ($keyid eq $_->{id}) } @keys;
}
#- let the caller know about what has been found.