aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-02-21 10:02:08 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-02-21 10:02:08 +0000
commitbdddc53969affb45a51dcb4a053853422356f425 (patch)
tree8f48ee1b0b8d094a51a109a066a909e43aac2793
parenta1638c10a62761ab9dc128f2c1acc6d23ef8f9f6 (diff)
downloadrpmdrake-bdddc53969affb45a51dcb4a053853422356f425.tar
rpmdrake-bdddc53969affb45a51dcb4a053853422356f425.tar.gz
rpmdrake-bdddc53969affb45a51dcb4a053853422356f425.tar.bz2
rpmdrake-bdddc53969affb45a51dcb4a053853422356f425.tar.xz
rpmdrake-bdddc53969affb45a51dcb4a053853422356f425.zip
Don't hardcode mirror list url, use /etc/urpmi/mirror.config like urpmi.addmedia does
-rw-r--r--rpmdrake.pm4
1 files changed, 3 insertions, 1 deletions
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};