aboutsummaryrefslogtreecommitdiffstats
path: root/rpmdrake.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-10-01 13:34:05 +0000
committerThierry Vignaud <tv@mandriva.org>2008-10-01 13:34:05 +0000
commit60f7967f79f1a7c057b70fb859b6f09352725d53 (patch)
tree1138147ea95abe09321d3c2a63294a4025649f69 /rpmdrake.pm
parent69d7be08c731b3b03e15986515292e89e2a5f78a (diff)
downloadrpmdrake-60f7967f79f1a7c057b70fb859b6f09352725d53.tar
rpmdrake-60f7967f79f1a7c057b70fb859b6f09352725d53.tar.gz
rpmdrake-60f7967f79f1a7c057b70fb859b6f09352725d53.tar.bz2
rpmdrake-60f7967f79f1a7c057b70fb859b6f09352725d53.tar.xz
rpmdrake-60f7967f79f1a7c057b70fb859b6f09352725d53.zip
(add_distrib_update_media) enable to use mirrorlist
Diffstat (limited to 'rpmdrake.pm')
-rw-r--r--rpmdrake.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/rpmdrake.pm b/rpmdrake.pm
index 958526ad..755e0aad 100644
--- a/rpmdrake.pm
+++ b/rpmdrake.pm
@@ -926,7 +926,9 @@ sub add_distrib_update_media {
add_medium_and_check(
$urpm,
{ nolock => 1, distrib => 1 },
- $medium_name, $mirror->{url}, probe_with => 'synthesis', initial_number => $initial_number, %options,
+ $medium_name,
+ ($mirror ? $mirror->{url} : (undef, mirrorlist => '$MIRRORLIST')),
+ probe_with => 'synthesis', initial_number => $initial_number, %options,
usedistrib => 1,
);
}