summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2011-12-12 19:54:47 +0000
committerThierry Vignaud <tv@mageia.org>2011-12-12 19:54:47 +0000
commit1908474fc96ce067a52d70c692f520c571197ee1 (patch)
treea3fffded82fbdeee7b2783a2657f119c69e0f76e /lib
parent36a43be36a784802cfdb26bb73928272f8c374b4 (diff)
downloaddrakx-kbd-mouse-x11-1908474fc96ce067a52d70c692f520c571197ee1.tar
drakx-kbd-mouse-x11-1908474fc96ce067a52d70c692f520c571197ee1.tar.gz
drakx-kbd-mouse-x11-1908474fc96ce067a52d70c692f520c571197ee1.tar.bz2
drakx-kbd-mouse-x11-1908474fc96ce067a52d70c692f520c571197ee1.tar.xz
drakx-kbd-mouse-x11-1908474fc96ce067a52d70c692f520c571197ee1.zip
(may_use_Driver2,pkgs_for_Driver2) perl_checker cleanups
Diffstat (limited to 'lib')
-rw-r--r--lib/Xconfig/proprietary.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Xconfig/proprietary.pm b/lib/Xconfig/proprietary.pm
index c55e081..5dcf17d 100644
--- a/lib/Xconfig/proprietary.pm
+++ b/lib/Xconfig/proprietary.pm
@@ -49,7 +49,7 @@ sub handle_DRIVER2_NO_SSE {
sub pkgs_for_Driver2 {
my ($Driver2, $do_pkgs) = @_;
- my ($pkg, $base_name) = ($Driver2 =~ /^fglrx|^nvidia/) ?
+ my ($pkg, $base_name) = $Driver2 =~ /^fglrx|^nvidia/ ?
("x11-driver-video-$Driver2", $Driver2) : () or return;
$do_pkgs->is_installed($pkg) || $do_pkgs->is_available($pkg) or
@@ -96,8 +96,8 @@ sub may_use_Driver2 {
log::explanations("Using specific NVIDIA driver and GLX extensions");
$card2->{DRI_GLX_SPECIAL} = 1;
- $card2->{Options}{IgnoreEDID} = 1 if ($card2->{DriverVersion} eq "71xx");
- $card2->{Options}{UseEDID} = 0 if ($card2->{DriverVersion} eq "96xx");
+ $card2->{Options}{IgnoreEDID} = 1 if $card2->{DriverVersion} eq "71xx";
+ $card2->{Options}{UseEDID} = 0 if $card2->{DriverVersion} eq "96xx";
$card2;
} elsif ($card2->{Driver} eq 'fglrx') {
$check_drv->('fglrx_drv', "fglrx$card2->{DriverVersion}") or return;