diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2004-02-27 10:52:35 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2004-02-27 10:52:35 +0000 |
commit | 3bd0e83a993d335c207dad9453e3012e87437b8d (patch) | |
tree | d61632babb64b519ee879051f6df3fe354aee06b | |
parent | 9bd23aa51b2c6c98f5e47f0c950845a9473d7c41 (diff) | |
download | rpmdrake-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.pm | 5 |
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.. |