summaryrefslogtreecommitdiffstats
path: root/perl-install/install_any.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-03-20 17:02:57 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-03-20 17:02:57 +0000
commit23f9db1e651a6e2777decbfa8638d32178846bb2 (patch)
tree1770ccebabf473227c5ae6362fe6b5c270b514ce /perl-install/install_any.pm
parentef912e15b25151ef79173ba7bb7f06c1e17b4138 (diff)
downloaddrakx-23f9db1e651a6e2777decbfa8638d32178846bb2.tar
drakx-23f9db1e651a6e2777decbfa8638d32178846bb2.tar.gz
drakx-23f9db1e651a6e2777decbfa8638d32178846bb2.tar.bz2
drakx-23f9db1e651a6e2777decbfa8638d32178846bb2.tar.xz
drakx-23f9db1e651a6e2777decbfa8638d32178846bb2.zip
- create install_any::unselectMostPackages
- use it instead of pkgs::unselectAllPackages (otherwise default_packages ends up non-selected)
Diffstat (limited to 'perl-install/install_any.pm')
-rw-r--r--perl-install/install_any.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm
index 61d4176e1..3868f3bba 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -354,6 +354,12 @@ sub setPackages {
}
}
+sub unselectMostPackages {
+ my ($o) = @_;
+ pkgs::unselectAllPackages($o->{packages});
+ pkgs::selectPackage($o->{packages}, pkgs::packageByName($o->{packages}, $_) || next) foreach @{$o->{default_packages}};
+}
+
sub addToBeDone(&$) {
my ($f, $step) = @_;