aboutsummaryrefslogtreecommitdiffstats
path: root/URPM/Resolve.pm
diff options
context:
space:
mode:
Diffstat (limited to 'URPM/Resolve.pm')
-rw-r--r--URPM/Resolve.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/URPM/Resolve.pm b/URPM/Resolve.pm
index ea18a7f..a284f3a 100644
--- a/URPM/Resolve.pm
+++ b/URPM/Resolve.pm
@@ -345,10 +345,10 @@ sub _find_required_package__kernel_source {
sub _find_required_package__kmod {
my ($urpm, $db, $choices) = @_;
- $choices->[0]->name =~ /^dkms-|-kernel-2\./ or return;
+ $choices->[0]->name =~ /^dkms-|-kernel-\d\./ or return;
grep {
- if (my ($_name, $version, $flavor, $release) = $_->name =~ /(.*)-kernel-(2\..*)-(.*)-(.*)/) {
+ if (my ($_name, $version, $flavor, $release) = $_->name =~ /(.*)-kernel-(\d\..*)-(.*)-(.*)/) {
my $kernel = "kernel-$flavor-$version-$release";
_is_selected_or_installed($urpm, $db, $kernel);
} elsif ($_->name =~ /^dkms-/) {