From bdddc53969affb45a51dcb4a053853422356f425 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Mon, 21 Feb 2005 10:02:08 +0000 Subject: Don't hardcode mirror list url, use /etc/urpmi/mirror.config like urpmi.addmedia does --- rpmdrake.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'rpmdrake.pm') diff --git a/rpmdrake.pm b/rpmdrake.pm index 5b08ced8..55696b44 100644 --- a/rpmdrake.pm +++ b/rpmdrake.pm @@ -28,6 +28,7 @@ use urpm::download (); use MDK::Common; use MDK::Common::System; use urpm; +use urpm::cfg; use URPM; use URPM::Resolve; use strict; @@ -402,7 +403,8 @@ sub mirrors { $cachedir ||= '/root'; my $mirrorslist = "$cachedir/mirrorsfull.list"; unlink $mirrorslist; - my $res = curl_download::download('http://www.mandrakelinux.com/mirrorsfull.list', $cachedir, sub {}); + urpm::cfg::mirrors_cfg(); + my $res = curl_download::download($urpm::cfg::mirrors, $cachedir, sub {}); $res and die $res; require timezone; my $tz = ${timezone::read()}{timezone}; -- cgit v1.2.1