summaryrefslogtreecommitdiffstats
path: root/urpmq
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-07-08 15:45:06 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-07-08 15:45:06 +0000
commit89d848a4838e2c2db22a9b91658d170d3513bff5 (patch)
tree434102925c9bb89f3233dd0e8996a97d8f28f8bf /urpmq
parent5bac0d169b04a6cca4ce0eeabb78388ac537a4b7 (diff)
downloadurpmi-89d848a4838e2c2db22a9b91658d170d3513bff5.tar
urpmi-89d848a4838e2c2db22a9b91658d170d3513bff5.tar.gz
urpmi-89d848a4838e2c2db22a9b91658d170d3513bff5.tar.bz2
urpmi-89d848a4838e2c2db22a9b91658d170d3513bff5.tar.xz
urpmi-89d848a4838e2c2db22a9b91658d170d3513bff5.zip
simplify
Diffstat (limited to 'urpmq')
-rwxr-xr-xurpmq4
1 files changed, 1 insertions, 3 deletions
diff --git a/urpmq b/urpmq
index 7ec2b127..52ac6426 100755
--- a/urpmq
+++ b/urpmq
@@ -479,9 +479,7 @@ if ($options{list_aliases}) {
}
} elsif ($options{sources}) {
print join "\n", values %$local_sources; values %$local_sources and print "\n";
- foreach (0..$#{$urpm->{media} || []}) {
- print "$_\n" foreach values %{$list->[$_]};
- }
+ print "$_\n" foreach map { values %$_ } @$list;
}
exit 0;
} elsif ($options{summary}) {