summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2003-08-26 13:07:18 +0000
committerFrancois Pons <fpons@mandriva.com>2003-08-26 13:07:18 +0000
commit8920ce5a7c0c153d16d6f83eb97053d385c667cf (patch)
tree34eee2f8ef8bae9807657752fd1f9a44656b28ad /perl-install
parent774a82ca35b90978728bc89d97bb1def8c601606 (diff)
downloaddrakx-backup-do-not-use-8920ce5a7c0c153d16d6f83eb97053d385c667cf.tar
drakx-backup-do-not-use-8920ce5a7c0c153d16d6f83eb97053d385c667cf.tar.gz
drakx-backup-do-not-use-8920ce5a7c0c153d16d6f83eb97053d385c667cf.tar.bz2
drakx-backup-do-not-use-8920ce5a7c0c153d16d6f83eb97053d385c667cf.tar.xz
drakx-backup-do-not-use-8920ce5a7c0c153d16d6f83eb97053d385c667cf.zip
added default compssUsers group selection from compssUser file directly (use
[selected=...] where ... is a list of comma separated meta_class (or default for no meta_class or all for all meta_class). fixed all radeon card are using 3D for 3D package group.
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/install_any.pm17
1 files changed, 9 insertions, 8 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm
index 0e16916a9..a38712007 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -332,13 +332,14 @@ sub setDefaultPackages {
$o->{compssUsersChoice}{$_} = 1 foreach map { @{$o->{compssUsers}{$_}{flags}} } @{$o->{compssUsersSorted}};
}
if (!$o->{compssUsersChoice} && !$o->{isUpgrade}) {
- #- by default, choose:
- if ($o->{meta_class} eq 'server') {
- $o->{compssUsersChoice}{$_} = 1 foreach 'X', 'MONITORING', 'NETWORKING_REMOTE_ACCESS_SERVER';
- } else {
- $o->{compssUsersChoice}{$_} = 1 foreach 'GNOME', 'KDE', 'CONFIG', 'X';
- $o->{compssUsersChoice}{$_} = 1
- foreach map { @{$o->{compssUsers}{$_}{flags}} } 'Workstation|Office Workstation', 'Workstation|Internet station';
+ #- use default selection seen in compssUsers directly.
+ foreach (keys %{$o->{compssUsers}}) {
+ $o->{compssUsers}{$_}{selected} or next;
+ log::l("looking for default selection on $_");
+ member($o->{meta_class} || 'default', @{$o->{compssUsers}{$_}{selected}}) ||
+ member('all', @{$o->{compssUsers}{$_}{selected}}) or next;
+ log::l(" doing selection on $_");
+ $o->{compssUsersChoice}{$_} = 1 foreach @{$o->{compssUsers}{$_}{flags}};
}
}
}
@@ -363,7 +364,7 @@ sub setDefaultPackages {
detect_devices::matching_desc('Voodoo Banshee') ||
detect_devices::matching_desc('8281[05].* CGC') ||
detect_devices::matching_desc('Rage 128') ||
- detect_devices::matching_desc('Radeon ') && !detect_devices::matching_desc('Radeon 8500') ||
+ detect_devices::matching_desc('Radeon ') || #- all Radeon card are now 3D with 4.3.0
detect_devices::matching_desc('[nN]Vidia.*T[nN]T2') || #- TNT2 cards
detect_devices::matching_desc('[nN][vV]idia.*NV[56]') ||
detect_devices::matching_desc('[nN][vV]idia.*Vanta') ||