summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-09-04 07:24:39 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-09-04 07:24:39 +0000
commit670b614683cf9bbabf2f2f060e696cfee8b5b831 (patch)
tree2159f32a26d5c0272cfe33a7c1880a3d0e6f9cb4
parent22987d1b74628b9736c5261649ee03e2d4e33a64 (diff)
downloadurpmi-670b614683cf9bbabf2f2f060e696cfee8b5b831.tar
urpmi-670b614683cf9bbabf2f2f060e696cfee8b5b831.tar.gz
urpmi-670b614683cf9bbabf2f2f060e696cfee8b5b831.tar.bz2
urpmi-670b614683cf9bbabf2f2f060e696cfee8b5b831.tar.xz
urpmi-670b614683cf9bbabf2f2f060e696cfee8b5b831.zip
simplify
-rw-r--r--urpm/download.pm12
1 files changed, 6 insertions, 6 deletions
diff --git a/urpm/download.pm b/urpm/download.pm
index 550fe2f7..9de5fc8a 100644
--- a/urpm/download.pm
+++ b/urpm/download.pm
@@ -931,10 +931,10 @@ sub _create_metalink_ {
# Even if not required by metalink spec, this line is needed at top of
# metalink file, otherwise aria2 won't be able to autodetect it..
my @metalink = (
- qq(<?xml version="1.0" encoding="utf-8"?>),
- qq(<metalink version="3.0" generator="URPMI"),
- qq(xmlns="http://www.metalinker.org/">),
- qq(<files>),
+ '<?xml version="1.0" encoding="utf-8"?>',
+ '<metalink version="3.0" generator="URPMI"',
+ 'xmlns="http://www.metalinker.org/">',
+ '<files>',
);
# only use the 8 best mirrors, then we let aria2 choose
@@ -948,13 +948,13 @@ sub _create_metalink_ {
} @mirrors;
push @metalink,
- qq(\t<file name=") . basename($rel_file) . qq(">),
+ qq(\t<file name=") . basename($rel_file) . '">',
qq(\t\t<resources>),
(map { "\t\t\t$_" } @lines),
"\t\t</resources>",
"\t</file>";
}
- push @metalink, "</files>", "</metalink>";
+ push @metalink, '</files>', '</metalink>';
output_safe($metalinkfile, join('', map { "$_\n" } @metalink));
$metalinkfile;