From a1d85a68719b08188db9324a0f7c70776825466d Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Wed, 11 Mar 2009 12:28:33 +0000 Subject: - Handle kernel-2.X package (without flavour) in get_replaced_packages --- lib/Youri/Repository/Mandriva_upload.pm | 3 +-- 1 file changed, 1 insertion(+), 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( -- cgit v1.2.1