diff options
author | Pascal Terjan <pterjan@mandriva.org> | 2009-03-11 12:28:33 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mandriva.org> | 2009-03-11 12:28:33 +0000 |
commit | a1d85a68719b08188db9324a0f7c70776825466d (patch) | |
tree | 882537198a318b5cab98012bef66bb220868d056 | |
parent | d27dc77d077cdc88dc4582eb5604c6a8ea1fc11d (diff) | |
download | mga-youri-core-a1d85a68719b08188db9324a0f7c70776825466d.tar mga-youri-core-a1d85a68719b08188db9324a0f7c70776825466d.tar.gz mga-youri-core-a1d85a68719b08188db9324a0f7c70776825466d.tar.bz2 mga-youri-core-a1d85a68719b08188db9324a0f7c70776825466d.tar.xz mga-youri-core-a1d85a68719b08188db9324a0f7c70776825466d.zip |
- Handle kernel-2.X package (without flavour) in get_replaced_packages
-rw-r--r-- | lib/Youri/Repository/Mandriva_upload.pm | 3 |
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( |