summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2003-08-20 12:20:34 +0000
committerFrancois Pons <fpons@mandriva.com>2003-08-20 12:20:34 +0000
commit04ff5e5777ec0e6e211b83424f7cf65d8216c27a (patch)
tree7040acbad013e725fcaa000e871675d51e2b3433
parent6ba2c95d6abe0bbb169d8f3f80983b737d05f203 (diff)
downloadurpmi-04ff5e5777ec0e6e211b83424f7cf65d8216c27a.tar
urpmi-04ff5e5777ec0e6e211b83424f7cf65d8216c27a.tar.gz
urpmi-04ff5e5777ec0e6e211b83424f7cf65d8216c27a.tar.bz2
urpmi-04ff5e5777ec0e6e211b83424f7cf65d8216c27a.tar.xz
urpmi-04ff5e5777ec0e6e211b83424f7cf65d8216c27a.zip
fixed strange typo preventing key to be correctly imported.
-rw-r--r--urpm.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm.pm b/urpm.pm
index 9fb81bd7..8e360c33 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -1814,7 +1814,7 @@ this could happen if you mounted manually the directory when creating the medium
foreach ($urpm->parse_armored_file("$urpm->{cachedir}/partial/pubkey")) {
my $id;
foreach my $kv (values %{$urpm->{keys} || {}}) {
- $kv->{content} = $_->{content} and $key_ids{$id = $kv->{id}} = undef, last;
+ $kv->{content} eq $_->{content} and $key_ids{$id = $kv->{id}} = undef, last;
}
unless ($id) {
#- the key has not been found, this is important to import it now,
@@ -1825,7 +1825,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} = $_->{content} and $key_ids{$id = $kv->{id}} = undef, last;
+ $kv->{content} eq $_->{content} and $key_ids{$id = $kv->{id}} = undef, last;
}
#- now id should be defined, or there is a problem to import the keys...