aboutsummaryrefslogtreecommitdiffstats
path: root/rpmdrake.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-02-21 15:34:38 +0000
committerThierry Vignaud <tv@mandriva.org>2008-02-21 15:34:38 +0000
commitb67e574587f019c8eebfec2159edb0109fe5791f (patch)
treec356e8ea729e7f0fd730b37f9b0889bc9adf16bc /rpmdrake.pm
parentde813e376d686cf4ec7a1c4324517a5e763a394e (diff)
downloadrpmdrake-b67e574587f019c8eebfec2159edb0109fe5791f.tar
rpmdrake-b67e574587f019c8eebfec2159edb0109fe5791f.tar.gz
rpmdrake-b67e574587f019c8eebfec2159edb0109fe5791f.tar.bz2
rpmdrake-b67e574587f019c8eebfec2159edb0109fe5791f.tar.xz
rpmdrake-b67e574587f019c8eebfec2159edb0109fe5791f.zip
(choose_mirror,easy_add_callback,mirrors) drop arch choice
Diffstat (limited to 'rpmdrake.pm')
-rw-r--r--rpmdrake.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/rpmdrake.pm b/rpmdrake.pm
index 53c2bca6..afa4c599 100644
--- a/rpmdrake.pm
+++ b/rpmdrake.pm
@@ -499,7 +499,7 @@ sub compat_arch_for_updates($) {
}
sub mirrors {
- my ($urpm, $want_base_distro, $o_arch) = @_;
+ my ($urpm, $want_base_distro) = @_;
my $cachedir = $urpm->{cachedir} || '/root';
use mirror;
mirror::register_downloader(sub {
@@ -513,7 +513,7 @@ sub mirrors {
return cat_($file);
});
my @mirrors = @{ mirror::list(common::parse_LDAP_namespace_structure(cat_('/etc/product.id')),
- ($want_base_distro ? 'distrib' : 'updates'), $o_arch) || [] };
+ ($want_base_distro ? 'distrib' : 'updates')) || [] };
require timezone;
my $tz = ${timezone::read()}{timezone};
foreach my $mirror (@mirrors) {
@@ -549,7 +549,7 @@ Is it ok to continue?");
: N("Please wait, downloading mirror addresses from the Mandriva website.")),
@transient_options
);
- my @mirrors = eval { mirrors($urpm, $options{want_base_distro}, $options{arch}) };
+ my @mirrors = eval { mirrors($urpm, $options{want_base_distro}) };
my $error = $@;
remove_wait_msg($wait);
if ($error) {