From 1908474fc96ce067a52d70c692f520c571197ee1 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 12 Dec 2011 19:54:47 +0000 Subject: (may_use_Driver2,pkgs_for_Driver2) perl_checker cleanups --- lib/Xconfig/proprietary.pm | 6 +++--- 1 file 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; -- cgit v1.2.1