summaryrefslogtreecommitdiffstats
path: root/perl-install/do_pkgs.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/do_pkgs.pm')
-rw-r--r--perl-install/do_pkgs.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/perl-install/do_pkgs.pm b/perl-install/do_pkgs.pm
index f155a5c84..cd0c4b40a 100644
--- a/perl-install/do_pkgs.pm
+++ b/perl-install/do_pkgs.pm
@@ -68,8 +68,7 @@ sub check_kernel_module_packages {
my ($do, $base_name, $o_ext_name) = @_;
require bootloader;
- my ($short_name) = $base_name =~ /^(.*)-kernel$/;
- my @rpms = $do->are_available("dkms-$short_name",
+ my @rpms = $do->are_available(if_($base_name =~ /^(.*)-kernel$/, "dkms-$1"),
map {
$base_name . '-' . bootloader::vmlinuz2version($_);
} bootloader::installed_vmlinuz());