summaryrefslogtreecommitdiffstats
path: root/urpmq
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-01-10 17:41:05 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-01-10 17:41:05 +0000
commitfe9cbe02f11ecb5c3915761e4781b2223a1b8a75 (patch)
tree338e17743b4c04fb77ac5fef91441308927cdff0 /urpmq
parent95e623d3dd4dbf12e391a2ef1413547358e0e353 (diff)
downloadurpmi-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-xurpmq6
1 files changed, 3 insertions, 3 deletions
diff --git a/urpmq b/urpmq
index 1d526e5f..8e05cde6 100755
--- a/urpmq
+++ b/urpmq
@@ -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);