aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2013-03-23 16:05:08 +0000
committerThierry Vignaud <tv@mageia.org>2013-03-23 16:05:08 +0000
commite5058ae647fa4893f1a4bc6b4139b7289bb8005a (patch)
tree90cbcfed4d41a64c9bfd6423fc69cc934429acae
parent251e6cf737712249203798cd6a53766452d4240d (diff)
downloadperl-URPM-e5058ae647fa4893f1a4bc6b4139b7289bb8005a.tar
perl-URPM-e5058ae647fa4893f1a4bc6b4139b7289bb8005a.tar.gz
perl-URPM-e5058ae647fa4893f1a4bc6b4139b7289bb8005a.tar.bz2
perl-URPM-e5058ae647fa4893f1a4bc6b4139b7289bb8005a.tar.xz
perl-URPM-e5058ae647fa4893f1a4bc6b4139b7289bb8005a.zip
fix selecting right DKMS flavor (mga#9172)
-rw-r--r--NEWS2
-rw-r--r--URPM/Resolve.pm2
2 files changed, 3 insertions, 1 deletions
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-/) {