diff options
author | Thierry Vignaud <tv@mageia.org> | 2011-12-12 19:54:50 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2011-12-12 19:54:50 +0000 |
commit | 7852f18586352b52a5ffd8892c1c4f25cf60b745 (patch) | |
tree | bf2dacbabd27d7b8385e52b4e12098339b703dfc /lib | |
parent | b4df04aae528801847e2b2849a7832803bdbb49e (diff) | |
download | drakx-kbd-mouse-x11-7852f18586352b52a5ffd8892c1c4f25cf60b745.tar drakx-kbd-mouse-x11-7852f18586352b52a5ffd8892c1c4f25cf60b745.tar.gz drakx-kbd-mouse-x11-7852f18586352b52a5ffd8892c1c4f25cf60b745.tar.bz2 drakx-kbd-mouse-x11-7852f18586352b52a5ffd8892c1c4f25cf60b745.tar.xz drakx-kbd-mouse-x11-7852f18586352b52a5ffd8892c1c4f25cf60b745.zip |
(may_use_Driver2) simplify
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Xconfig/proprietary.pm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Xconfig/proprietary.pm b/lib/Xconfig/proprietary.pm index 756387c..fba7854 100644 --- a/lib/Xconfig/proprietary.pm +++ b/lib/Xconfig/proprietary.pm @@ -99,9 +99,8 @@ sub may_use_Driver2 { $card2; } elsif ($card2->{Driver} eq 'fglrx') { $check_drv->('fglrx_drv', "fglrx$card2->{DriverVersion}") or return; - -e "$::prefix/usr/$lib/fglrx$card2->{DriverVersion}/dri/fglrx_dri.so" || - -e "$::prefix$modules_dir/dri/fglrx_dri.so" || - -e "$::prefix/usr/$lib/dri/fglrx_dri.so" or + find { -e "$::prefix/$_/dri/fglrx_dri.so" } ( + "/usr/$lib/fglrx$card2->{DriverVersion}", $modules_dir, "/usr/$lib") or log::l("proprietary fglrx_dri.so missing"), return; log::explanations("Using specific ATI fglrx and DRI drivers"); |