summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-09-04 07:21:42 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-09-04 07:21:42 +0000
commit45f782ed7c8143af2e8560aa501f3798c358e28d (patch)
tree5380b0ee90d0fde9bd18ebf3b67c397db1e71d30 /urpm
parent074d51f05f535f13ed474e36757dd9b7a93756f8 (diff)
downloadurpmi-45f782ed7c8143af2e8560aa501f3798c358e28d.tar
urpmi-45f782ed7c8143af2e8560aa501f3798c358e28d.tar.gz
urpmi-45f782ed7c8143af2e8560aa501f3798c358e28d.tar.bz2
urpmi-45f782ed7c8143af2e8560aa501f3798c358e28d.tar.xz
urpmi-45f782ed7c8143af2e8560aa501f3798c358e28d.zip
simplify
Diffstat (limited to 'urpm')
-rw-r--r--urpm/download.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/urpm/download.pm b/urpm/download.pm
index d39d52b3..0155f64c 100644
--- a/urpm/download.pm
+++ b/urpm/download.pm
@@ -945,10 +945,11 @@ sub _create_metalink_ {
push @metalink, qq(\t\t<resources>);
my $i = 0;
- foreach my $mirror (@mirrors) {
+ push @metalink, map {
$i++;
- push @metalink, "\t\t\t" . _create_one_metalink_line($medium, $mirror, $rel_file, $i);
- }
+ "\t\t\t" . _create_one_metalink_line($medium, $_, $rel_file, $i);
+ } @mirrors;
+
push @metalink, "\t\t</resources>";
push @metalink, "\t</file>";
}