summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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}) {