summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-10-04 16:58:50 +0000
committerOlivier Blin <oblin@mandriva.com>2007-10-04 16:58:50 +0000
commitfc640a6f1faf145c00d214fb57d411ccdd89450f (patch)
tree6b118d2774ea2646aeada31c7e473bb7149c6d11
parent2b9abc9d0de853de712490153ef2149d3d481742 (diff)
downloaddrakx-kbd-mouse-x11-fc640a6f1faf145c00d214fb57d411ccdd89450f.tar
drakx-kbd-mouse-x11-fc640a6f1faf145c00d214fb57d411ccdd89450f.tar.gz
drakx-kbd-mouse-x11-fc640a6f1faf145c00d214fb57d411ccdd89450f.tar.bz2
drakx-kbd-mouse-x11-fc640a6f1faf145c00d214fb57d411ccdd89450f.tar.xz
drakx-kbd-mouse-x11-fc640a6f1faf145c00d214fb57d411ccdd89450f.zip
when checking dkms module packages, check that modules are either available in urpmi media, or already installed (fix detection in live)
-rw-r--r--NEWS3
-rw-r--r--lib/Xconfig/proprietary.pm3
2 files changed, 5 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 43965bf..927da3a 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+- when checking dkms module packages, check that modules are either
+ available in urpmi media, or already installed (fix detection in live)
+
Version 0.36 - 4 October 2007, by Pascal "Pixel" Rigaux
- better fix for typo in 0.32: don't wrongly default to "automatic" resolution
diff --git a/lib/Xconfig/proprietary.pm b/lib/Xconfig/proprietary.pm
index 9205c5c..2c5e713 100644
--- a/lib/Xconfig/proprietary.pm
+++ b/lib/Xconfig/proprietary.pm
@@ -39,7 +39,8 @@ sub pkgs_for_Driver2 {
my ($pkg, $base_name) = ($Driver2 =~ /^fglrx/ || $Driver2 =~ /^nvidia/) ?
("x11-driver-video-$Driver2", $Driver2) : () or return;
- $do_pkgs->is_available($pkg) or log::l("proprietary package $pkg not available"), return;
+ $do_pkgs->is_installed($pkg) || $do_pkgs->is_available($pkg) or
+ log::l("proprietary package $pkg not available"), return;
my $module_pkgs = $do_pkgs->check_kernel_module_packages($base_name) or
log::l("$pkg available, but no kernel module package (for installed kernels, and no dkms)"), return;