aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2004-02-27 10:52:35 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2004-02-27 10:52:35 +0000
commit3bd0e83a993d335c207dad9453e3012e87437b8d (patch)
treed61632babb64b519ee879051f6df3fe354aee06b
parent9bd23aa51b2c6c98f5e47f0c950845a9473d7c41 (diff)
downloadrpmdrake-3bd0e83a993d335c207dad9453e3012e87437b8d.tar
rpmdrake-3bd0e83a993d335c207dad9453e3012e87437b8d.tar.gz
rpmdrake-3bd0e83a993d335c207dad9453e3012e87437b8d.tar.bz2
rpmdrake-3bd0e83a993d335c207dad9453e3012e87437b8d.tar.xz
rpmdrake-3bd0e83a993d335c207dad9453e3012e87437b8d.zip
support community and cooker classes in mirrorsfull.list as well
-rw-r--r--rpmdrake.pm5
1 files changed, 4 insertions, 1 deletions
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..