From e5058ae647fa4893f1a4bc6b4139b7289bb8005a Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Sat, 23 Mar 2013 16:05:08 +0000 Subject: fix selecting right DKMS flavor (mga#9172) --- NEWS | 2 ++ URPM/Resolve.pm | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index ad6b7ee..1aec5b7 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,5 @@ +- fix selecting right DKMS flavor (mga#9172) + Version 4.26 - 9 February 2013 - add basic support for --downgrade (mga#6655) diff --git a/URPM/Resolve.pm b/URPM/Resolve.pm index 46793ff..19622fa 100644 --- a/URPM/Resolve.pm +++ b/URPM/Resolve.pm @@ -350,7 +350,7 @@ sub _find_required_package__kmod { $choices->[0]->name =~ /^dkms-|-kernel-\d\./ or return; grep { - if (my ($version, $flavor, $release) = $_->name =~ /(:?.*)-kernel-(\d\..*)-(.*)-(.*)/) { + if (my ($version, $flavor, $release) = $_->name =~ /(?:.*)-kernel-(\d\..*)-(.*)-(.*)/) { my $kernel = "kernel-$flavor-$version-$release"; _is_selected_or_installed($urpm, $db, $kernel); } elsif ($_->name =~ /^dkms-/) { -- cgit v1.2.1