summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2002-09-12 12:52:35 +0000
committerFrancois Pons <fpons@mandriva.com>2002-09-12 12:52:35 +0000
commitaa25e85ac680f418c5aacf1a09c8e4b71ecf43f0 (patch)
treec39064d38a4beb5ad0de54ee9a99bb94d27c07e5 /perl-install
parenta8890c3df63a481583cf493d9a099bd4ead09b50 (diff)
downloaddrakx-aa25e85ac680f418c5aacf1a09c8e4b71ecf43f0.tar
drakx-aa25e85ac680f418c5aacf1a09c8e4b71ecf43f0.tar.gz
drakx-aa25e85ac680f418c5aacf1a09c8e4b71ecf43f0.tar.bz2
drakx-aa25e85ac680f418c5aacf1a09c8e4b71ecf43f0.tar.xz
drakx-aa25e85ac680f418c5aacf1a09c8e4b71ecf43f0.zip
fixed very stupid typo and inconsistency in allowNVIDIA_rpms.
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/install_any.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm
index 621095859..c64358e3b 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -194,9 +194,8 @@ sub allowNVIDIA_rpms {
if (pkgs::packageByName($packages, "NVIDIA_GLX")) {
#- at this point, we can allow using NVIDIA 3D acceleration packages.
my @rpms;
- foreach (@{$packages->{depslist}}) {
- my ($ext, $version, $release) = /kernel[^-]*(-smp|-enterprise|-secure)?(?:-(\d.*?)\.(\d+mdk))?$/ or next;
- my $p = pkgs::packageByName($packages, $_);
+ foreach my $p (@{$packages->{depslist}}) {
+ my ($ext, $version, $release) = $p->name =~ /kernel[^-]*(-smp|-enterprise|-secure)?(?:-(\d.*?)\.(\d+mdk))?$/ or next;
$p->flag_available or next;
$version or ($version, $release) = ($p->version, $p->release);
my $name = "NVIDIA_kernel-$version-$release$ext";