aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Youri/Repository/Mandriva_upload.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Youri/Repository/Mandriva_upload.pm b/lib/Youri/Repository/Mandriva_upload.pm
index 05730b5..8deadc5 100644
--- a/lib/Youri/Repository/Mandriva_upload.pm
+++ b/lib/Youri/Repository/Mandriva_upload.pm
@@ -272,8 +272,7 @@ sub get_replaced_packages {
# kernel packages have the version in the name
# binary dkms built for old kernels have to be removed too
-
- if ($name =~ /^kernel-([^\d]*)-([\d.]*)-(.*)$/) { # "desktop", "2.6.28", "2mnb"
+ if ($name =~ /^kernel-([^\d]*-)?([\d.]*)-(.*)$/) { # "desktop", "2.6.28", "2mnb"
push(@replaced_packages,
map { PACKAGE_CLASS->new(file => $_) }
$self->get_files(