summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-03-12 00:22:50 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-03-12 00:22:50 +0000
commit84bc35e2be0b14f038a4480715887419a25f2060 (patch)
treec95c1fb91a8fb2c6f364fa16f31e72219fb9859b
parent3283593e6701012da131a4ed168cc9984e291662 (diff)
downloaddrakx-84bc35e2be0b14f038a4480715887419a25f2060.tar
drakx-84bc35e2be0b14f038a4480715887419a25f2060.tar.gz
drakx-84bc35e2be0b14f038a4480715887419a25f2060.tar.bz2
drakx-84bc35e2be0b14f038a4480715887419a25f2060.tar.xz
drakx-84bc35e2be0b14f038a4480715887419a25f2060.zip
(setPackages): set compssUsersChoice "3D" if 3D enabled graphic card
-rw-r--r--perl-install/install_any.pm12
1 files changed, 12 insertions, 0 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm
index dd3c5431d..6fe4f3a7b 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -325,6 +325,18 @@ sub setPackages {
$o->{compssUsersChoice}{SYSTEM} = 1;
$o->{compssUsersChoice}{BURNER} = 1 if detect_devices::burners();
+ $o->{compssUsersChoice}{3D} = 1 if
+ detect_devices::matching_desc('Matrox.* G[24]00') ||
+ detect_devices::matching_desc('Riva.*128') ||
+ detect_devices::matching_desc('Rage X[CL]') ||
+ detect_devices::matching_desc('Rage Mobility (?:P\/M|L) ') ||
+ detect_devices::matching_desc('3D Rage (?:LT|Pro)') ||
+ detect_devices::matching_desc('Voodoo [35]') ||
+ detect_devices::matching_desc('Voodoo Banshee') ||
+ detect_devices::matching_desc('8281[05].* CGC') ||
+ detect_devices::matching_desc('Rage 128');
+
+
foreach (map { substr($_, 0, 2) } lang::langs($o->{langs})) {
pkgs::packageByName($o->{packages}, "locales-$_") or next;
push @{$o->{default_packages}}, "locales-$_";