summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm.pm b/urpm.pm
index 7f539e3e..5ef6cd14 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -1810,7 +1810,7 @@ this could happen if you mounted manually the directory when creating the medium
foreach my $k ($urpm->parse_armored_file("$urpm->{cachedir}/partial/pubkey")) {
my $id;
foreach my $kv (values %{$urpm->{keys} || {}}) {
- $kv->{content} eq $k->{content} and $key_ids{$id = $kv->{id}} = undef, last;
+ URPM::compare_pubkeys($kv, $k) == 0 and $key_ids{$id = $kv->{id}} = undef, last;
}
unless ($id) {
#- the key has not been found, this is important to import it now,
@@ -1820,7 +1820,7 @@ this could happen if you mounted manually the directory when creating the medium
$urpm->parse_pubkeys(root => $urpm->{root});
foreach my $kv (values %{$urpm->{keys} || {}}) {
- $kv->{content} eq $k->{content} and $key_ids{$id = $kv->{id}} = undef, last;
+ URPM::compare_pubkeys($kv, $k) == 0 and $key_ids{$id = $kv->{id}} = undef, last;
}
#- now id should be defined, or there is a problem to import the keys...