summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-03-15 13:11:43 +0000
committerThierry Vignaud <tv@mageia.org>2012-03-15 13:11:43 +0000
commit12fd8f457e87f2bbf7ff21ccc92408471a285572 (patch)
tree4cfa86c6d60aab9ba0705e44c68a9a8f1b403e60
parente90003e7fcf962f4fb17540084c74a8ea4d4cac4 (diff)
downloadmgatools-12fd8f457e87f2bbf7ff21ccc92408471a285572.tar
mgatools-12fd8f457e87f2bbf7ff21ccc92408471a285572.tar.gz
mgatools-12fd8f457e87f2bbf7ff21ccc92408471a285572.tar.bz2
mgatools-12fd8f457e87f2bbf7ff21ccc92408471a285572.tar.xz
mgatools-12fd8f457e87f2bbf7ff21ccc92408471a285572.zip
(cleanrpmsrate) fix matching dkms (broken for years...)
-rw-r--r--pm/MGATools/rpmsrate.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/pm/MGATools/rpmsrate.pm b/pm/MGATools/rpmsrate.pm
index 32b4258..39ae90d 100644
--- a/pm/MGATools/rpmsrate.pm
+++ b/pm/MGATools/rpmsrate.pm
@@ -116,7 +116,7 @@ sub cleanrpmsrate {
my (%rpms, $text, %rate, %section, %keyword, %locale, %localized_pkg);
my @plain_flags = qw(INSTALL LIVE);
my $kernel_like = "((?:(?:NVIDIA_)?kernel|NVIDIA_nforce|cm2020).*)";
- my $dkms_like = "(.*)([-_])kernel-([0-9]+(?:\.[0-9]+){2,3}-[0-9]+(?:.[^.]+){0,2}\.?mga\d+)(.*)";
+ my $dkms_like = '(.*)([-_])kernel-([0-9]+(?:\.[0-9]+){2,3}-\w+-[0-9]+(?:.[^.]+){0,2}\.?mga\d+)(.*)';
my $rpmsrate_dkms_like = "(.*[-_]kernel)(.*)";
my $urpm2 = URPM->new;