diff options
author | Francois Pons <fpons@mandriva.com> | 2003-08-20 12:37:12 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2003-08-20 12:37:12 +0000 |
commit | e9a91169694fa2de2423c8483b7fb6d75eadd61a (patch) | |
tree | f2853abf080c711239d13d55ad3b06931b68c840 /urpm.pm | |
parent | c87df38b9bf873beefc9a3364f141685edb8457e (diff) | |
download | urpmi-e9a91169694fa2de2423c8483b7fb6d75eadd61a.tar urpmi-e9a91169694fa2de2423c8483b7fb6d75eadd61a.tar.gz urpmi-e9a91169694fa2de2423c8483b7fb6d75eadd61a.tar.bz2 urpmi-e9a91169694fa2de2423c8483b7fb6d75eadd61a.tar.xz urpmi-e9a91169694fa2de2423c8483b7fb6d75eadd61a.zip |
disable use of $_ which could be bad.
Diffstat (limited to 'urpm.pm')
-rw-r--r-- | urpm.pm | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1807,10 +1807,10 @@ this could happen if you mounted manually the directory when creating the medium $urpm->{log}(N("examining pubkey file of \"%s\"...", $medium->{name})); my %key_ids; eval { - foreach ($urpm->parse_armored_file("$urpm->{cachedir}/partial/pubkey")) { + foreach my $k ($urpm->parse_armored_file("$urpm->{cachedir}/partial/pubkey")) { my $id; foreach my $kv (values %{$urpm->{keys} || {}}) { - $kv->{content} eq $_->{content} and $key_ids{$id = $kv->{id}} = undef, last; + $kv->{content} eq $k->{content} 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 $_->{content} and $key_ids{$id = $kv->{id}} = undef, last; + $kv->{content} eq $k->{content} and $key_ids{$id = $kv->{id}} = undef, last; } #- now id should be defined, or there is a problem to import the keys... |