summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--urpm/download.pm2
-rw-r--r--urpm/mirrors.pm2
2 files changed, 2 insertions, 2 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 {
diff --git a/urpm/mirrors.pm b/urpm/mirrors.pm
index f17240b2..ac0a1d83 100644
--- a/urpm/mirrors.pm
+++ b/urpm/mirrors.pm
@@ -274,7 +274,7 @@ sub _mirrors_raw {
my ($urpm, $url) = @_;
$urpm->{log}(N("getting mirror list from %s", $url));
- my @l = urpm::download::get_content($urpm, $url) or $urpm->{error}("mirror list not found");
+ my @l = urpm::download::get_content($urpm, $url, "allow_metalink" => 0) or $urpm->{error}("mirror list not found");
@l;
}