aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--URPM/Signature.pm4
2 files changed, 4 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index f1684ee..35b5496 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- fix lookup of existing pubkeys (#53710)
+
Version 3.32 - 10 August 2009, by Christophe Fergeau
- backtrack_selected: use set_rejected_and_compute_diff_provides for package
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.