summaryrefslogtreecommitdiffstats
path: root/urpm/download.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm/download.pm')
-rw-r--r--urpm/download.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/urpm/download.pm b/urpm/download.pm
index e8401f84..70e7e98d 100644
--- a/urpm/download.pm
+++ b/urpm/download.pm
@@ -881,6 +881,8 @@ sub _create_metalink_ {
}
my $metalinkfile = "$urpm->{cachedir}/$options->{media}.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 = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";
$metalink .= "<metalink version=\"3.0\" generator=\"URPMI\"\n";
$metalink .= "xmlns=\"http://www.metalinker.org/\">\n";