summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm')
-rw-r--r--urpm/download.pm10
1 files changed, 4 insertions, 6 deletions
diff --git a/urpm/download.pm b/urpm/download.pm
index 9de5fc8a..5ac4a22d 100644
--- a/urpm/download.pm
+++ b/urpm/download.pm
@@ -947,12 +947,10 @@ sub _create_metalink_ {
_create_one_metalink_line($medium, $_, $rel_file, $i);
} @mirrors;
- push @metalink,
- qq(\t<file name=") . basename($rel_file) . '">',
- qq(\t\t<resources>),
- (map { "\t\t\t$_" } @lines),
- "\t\t</resources>",
- "\t</file>";
+ push @metalink, map { "\t$_" }
+ sprintf('<file name="%s"><resources>', basename($rel_file)),
+ (map { "\t$_" } @lines),
+ '</resources></file>';
}
push @metalink, '</files>', '</metalink>';