From 3bd0e83a993d335c207dad9453e3012e87437b8d Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Fri, 27 Feb 2004 10:52:35 +0000 Subject: support community and cooker classes in mirrorsfull.list as well --- rpmdrake.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'rpmdrake.pm') diff --git a/rpmdrake.pm b/rpmdrake.pm index 507d5c63..2524a53e 100644 --- a/rpmdrake.pm +++ b/rpmdrake.pm @@ -308,7 +308,10 @@ Please check that your network is currently running. Is it ok to continue?"), yesno => 1) or return ''; my $wait = wait_msg(N("Please wait, downloading mirrors addresses from MandrakeSoft website.")); my @mirrors; - eval { @mirrors = mirrors('/var/cache/urpmi', 'updates') }; + my $class = cat_('/etc/mandrake-release') =~ /community/i ? 'community' + : cat_('/etc/mandrake-release') =~ /cooker/i ? 'cooker' + : 'updates'; + eval { @mirrors = mirrors('/var/cache/urpmi', $class) }; remove_wait_msg($wait); if ($@) { my $msg = $@; #- seems that value is bitten before being printed by next func.. -- cgit v1.2.1