summaryrefslogtreecommitdiffstats
path: root/perl-install/install_steps_interactive.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2000-11-23 10:38:28 +0000
committerFrancois Pons <fpons@mandriva.com>2000-11-23 10:38:28 +0000
commite4ac9bbbd0a936d754c5b3951f9321405e8bbd25 (patch)
tree34634427d69f77b0d6153ef47d1604377e9da597 /perl-install/install_steps_interactive.pm
parent2fa70b5930971d81cb4fe292e758c9cd2a9d8504 (diff)
downloaddrakx-backup-do-not-use-e4ac9bbbd0a936d754c5b3951f9321405e8bbd25.tar
drakx-backup-do-not-use-e4ac9bbbd0a936d754c5b3951f9321405e8bbd25.tar.gz
drakx-backup-do-not-use-e4ac9bbbd0a936d754c5b3951f9321405e8bbd25.tar.bz2
drakx-backup-do-not-use-e4ac9bbbd0a936d754c5b3951f9321405e8bbd25.tar.xz
drakx-backup-do-not-use-e4ac9bbbd0a936d754c5b3951f9321405e8bbd25.zip
updated with structural change of pkgs.
Diffstat (limited to 'perl-install/install_steps_interactive.pm')
-rw-r--r--perl-install/install_steps_interactive.pm18
1 files changed, 6 insertions, 12 deletions
diff --git a/perl-install/install_steps_interactive.pm b/perl-install/install_steps_interactive.pm
index 2d9e48083..379b58ecb 100644
--- a/perl-install/install_steps_interactive.pm
+++ b/perl-install/install_steps_interactive.pm
@@ -487,7 +487,7 @@ sub chooseGroups {
my $base = pkgs::selectedSize($packages);
foreach (@{$o->{compssUsersSorted}}) {
my $b = pkgs::saveSelected($packages);
- $_->{values}[$ind] < $min_level or pkgs::selectPackage($packages, $_) foreach @{$compssUsers->{$_}};
+ pkgs::packageValues($_)->[$ind] < $min_level or pkgs::selectPackage($packages, $_) foreach @{$compssUsers->{$_}};
$size{$_} = pkgs::selectedSize($packages) - $base;
pkgs::restoreSelected($b);
}
@@ -498,7 +498,7 @@ sub chooseGroups {
my $b = pkgs::saveSelected($packages);
foreach (@{$o->{compssUsersSorted}}) {
- $_->{values}[$ind] < $min_level or pkgs::selectPackage($packages, $_) foreach @{$compssUsers->{$_}};
+ pkgs::packageValues($_)->[$ind] < $min_level or pkgs::selectPackage($packages, $_) foreach @{$compssUsers->{$_}};
}
$size{Miscellaneous} = $max_size - pkgs::selectedSize($packages);
pkgs::restoreSelected($b);
@@ -526,7 +526,7 @@ sub chooseGroups {
unless ($o->{compssUsersChoice}{Miscellaneous}) {
my %l;
$l{@{$compssUsers->{$_}}} = () foreach @{$o->{compssUsersSorted}};
- exists $l{$_} or pkgs::packageSetFlagSkip($_, 1) foreach values %{$packages->[0]};
+ exists $l{$_} or pkgs::packageSetFlagSkip($_, 1) foreach values %{$packages->{names}};
}
foreach (@{$o->{compssUsersSorted}}) {
$o->{compssUsersChoice}{$_} or pkgs::skipSetWithProvides($packages, @{$compssUsers->{$_}});
@@ -548,7 +548,7 @@ sub chooseCD {
unless (grep { /ram3/ } cat_("/proc/mounts")) {
#- mono-cd in case of no ramdisk
- undef $packages->[2]{$_}{selected} foreach @mediums;
+ undef $packages->{mediums}{$_}{selected} foreach @mediums;
log::l("low memory install, using single CD installation (as it is not ejectable)");
return;
}
@@ -562,7 +562,7 @@ sub chooseCD {
foreach (@mediums) {
my $descr = pkgs::mediumDescr($packages, $_);
exists $mediumsDescr{$descr} or push @mediumsDescr, $descr;
- $mediumsDescr{$descr} ||= $packages->[2]{$_}{selected};
+ $mediumsDescr{$descr} ||= $packages->{mediums}{$_}{selected};
}
$o->set_help('chooseCD');
@@ -582,17 +582,11 @@ If only some CDs are missing, unselect them, then click Ok."),
#- restore true selection of medium (which may have been grouped together)
foreach (@mediums) {
my $descr = pkgs::mediumDescr($packages, $_);
- $packages->[2]{$_}{selected} = $mediumsDescr{$descr};
+ $packages->{mediums}{$_}{selected} = $mediumsDescr{$descr};
}
}
#------------------------------------------------------------------------------
-sub beforeInstallPackages($) {
- my ($o) = @_;
- my $w = $o->wait_message('', $o->{isUpgrade} ? _("Rebuilding package database") : _("Opening package database"));
- $o->SUPER::beforeInstallPackages($o);
-}
-
sub installPackages {
my ($o, $packages) = @_;
my ($current, $total) = 0;