summaryrefslogtreecommitdiffstats
path: root/urpm/download.pm
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@mandriva.com>2009-10-21 09:51:32 +0000
committerChristophe Fergeau <cfergeau@mandriva.com>2009-10-21 09:51:32 +0000
commite997e8b4cc32ea3ec4bd0208a1c425af5a60a004 (patch)
tree3519dd0c29ecc72e058d45f985d1d402033e3f31 /urpm/download.pm
parent504f48236193a06fa98526074aa2613c77b3c7d1 (diff)
downloadurpmi-e997e8b4cc32ea3ec4bd0208a1c425af5a60a004.tar
urpmi-e997e8b4cc32ea3ec4bd0208a1c425af5a60a004.tar.gz
urpmi-e997e8b4cc32ea3ec4bd0208a1c425af5a60a004.tar.bz2
urpmi-e997e8b4cc32ea3ec4bd0208a1c425af5a60a004.tar.xz
urpmi-e997e8b4cc32ea3ec4bd0208a1c425af5a60a004.zip
make sure we don't use aria2 to fetch mirrorlists
aria2 downloader currently doesn't work when we append a reason string to the api.mandriva.com URL, lamely fix that by making sure it's not used when grabbing a mirrorlist
Diffstat (limited to 'urpm/download.pm')
-rw-r--r--urpm/download.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm/download.pm b/urpm/download.pm
index a0c93975..03b2eac0 100644
--- a/urpm/download.pm
+++ b/urpm/download.pm
@@ -896,7 +896,7 @@ sub sync_rel_one {
sub sync_url {
my ($urpm, $url, %options) = @_;
- sync_rel_one($urpm, { url => dirname($url) }, basename($url), %options);
+ sync_rel_one($urpm, { url => dirname($url), $options{'allow-metalink'}?('allow-metalink' => $options{'allow-metalink'}):() }, basename($url), %options);
}
sub sync_rel_to {