diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-01-10 17:41:05 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-01-10 17:41:05 +0000 |
commit | fe9cbe02f11ecb5c3915761e4781b2223a1b8a75 (patch) | |
tree | 338e17743b4c04fb77ac5fef91441308927cdff0 /urpmq | |
parent | 95e623d3dd4dbf12e391a2ef1413547358e0e353 (diff) | |
download | urpmi-fe9cbe02f11ecb5c3915761e4781b2223a1b8a75.tar urpmi-fe9cbe02f11ecb5c3915761e4781b2223a1b8a75.tar.gz urpmi-fe9cbe02f11ecb5c3915761e4781b2223a1b8a75.tar.bz2 urpmi-fe9cbe02f11ecb5c3915761e4781b2223a1b8a75.tar.xz urpmi-fe9cbe02f11ecb5c3915761e4781b2223a1b8a75.zip |
use a var name $id instead of $_
Diffstat (limited to 'urpmq')
-rwxr-xr-x | urpmq | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -358,11 +358,11 @@ if ($options{list_aliases}) { } } foreach (keys %{$state->{selected}}) { - foreach (split /\|/, $_) { - my $pkg = $urpm->{depslist}[$_] or next; + foreach my $id (split /\|/, $_) { + my $pkg = $urpm->{depslist}[$id] or next; #- even if non-root, search for a header in the global cachedir - my $file1 = $local_sources->{$_} || "$urpm->{cachedir}/headers/" . $pkg->header_filename; + my $file1 = $local_sources->{$id} || "$urpm->{cachedir}/headers/" . $pkg->header_filename; my $file2 = "$tmp_header_dir/" . $pkg->header_filename; if (my ($file) = grep { -s $_ } $file1, $file2) { $pkg->update_header($file, keep_all_tags => 1); |