summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2003-08-20 16:23:58 +0000
committerFrancois Pons <fpons@mandriva.com>2003-08-20 16:23:58 +0000
commit3410e7518e8fed6ad12280552345e98f5b218e20 (patch)
tree48f832f435c6269bc34e1cb85b4ef9eeb42b82fb /urpm.pm
parente9a91169694fa2de2423c8483b7fb6d75eadd61a (diff)
downloadurpmi-3410e7518e8fed6ad12280552345e98f5b218e20.tar
urpmi-3410e7518e8fed6ad12280552345e98f5b218e20.tar.gz
urpmi-3410e7518e8fed6ad12280552345e98f5b218e20.tar.bz2
urpmi-3410e7518e8fed6ad12280552345e98f5b218e20.tar.xz
urpmi-3410e7518e8fed6ad12280552345e98f5b218e20.zip
4.4-23mdk
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...