summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2002-03-08 14:35:26 +0000
committerFrancois Pons <fpons@mandriva.com>2002-03-08 14:35:26 +0000
commit42a2c73e67c7127ad44a6861d0fd22401d17291d (patch)
treeeddeda52148dbf3b4beeaba5b485346d64f9a479 /perl-install
parent0a347b4c6c86f9ede2162b8b3810ce4198fd63b1 (diff)
downloaddrakx-backup-do-not-use-42a2c73e67c7127ad44a6861d0fd22401d17291d.tar
drakx-backup-do-not-use-42a2c73e67c7127ad44a6861d0fd22401d17291d.tar.gz
drakx-backup-do-not-use-42a2c73e67c7127ad44a6861d0fd22401d17291d.tar.bz2
drakx-backup-do-not-use-42a2c73e67c7127ad44a6861d0fd22401d17291d.tar.xz
drakx-backup-do-not-use-42a2c73e67c7127ad44a6861d0fd22401d17291d.zip
fixed NVIDIA support to use newer kernel naming conventions.
Diffstat (limited to 'perl-install')
-rwxr-xr-xperl-install/standalone/XFdrake5
1 files changed, 3 insertions, 2 deletions
diff --git a/perl-install/standalone/XFdrake b/perl-install/standalone/XFdrake
index 674366c84..e432b9681 100755
--- a/perl-install/standalone/XFdrake
+++ b/perl-install/standalone/XFdrake
@@ -85,8 +85,9 @@ if ($list{NVIDIA_GLX}) {
$ext and $ext = "-$ext";
$list{"NVIDIA_kernel-$version-$release$ext"} or die "no NVIDIA kernel for current kernel";
$select{"NVIDIA_kernel-$version-$release$ext"} = 1;
- foreach (`rpm -q kernel kernel-smp kernel-entreprise kernel22 kernel22-smp kernel22-secure`) {
- ($ext, $version, $release) = /kernel[^-]*(-[^-]*)-([^-]*)-([^-]*mdk)/;
+ foreach (`rpm -qa kernel-2* kernel-smp-2* kernel-enterprise-2* kernel-secure-2* kernel kernel-smp kernel-entreprise kernel22 kernel22-smp kernel22-secure`) {
+ ($ext, $version, $release) = /kernel[^-]*(-\D[^-]*)-([^-]*)-([^-]*mdk)?/;
+ $release or ($version, $release) = $version =~ /(.*?)\.(\d+mdk)/;
$list{"NVIDIA_kernel-$version-$release$ext"} and $select{"NVIDIA_kernel-$version-$release$ext"} = 1;
}
$allowNVIDIA_rpms = [ keys(%select), "NVIDIA_GLX" ];