diff options
author | Pascal Terjan <pterjan@gmail.com> | 2016-12-06 17:57:07 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@gmail.com> | 2016-12-06 17:57:07 +0000 |
commit | 18c423dde9ad406e6bb4539f9060c4be4888812d (patch) | |
tree | ad58ab9b5b80583162785840173fe56fda0e74a5 | |
parent | b8108b097788ff600aac51b38786aba3aff1eb36 (diff) | |
download | puppet-18c423dde9ad406e6bb4539f9060c4be4888812d.tar puppet-18c423dde9ad406e6bb4539f9060c4be4888812d.tar.gz puppet-18c423dde9ad406e6bb4539f9060c4be4888812d.tar.bz2 puppet-18c423dde9ad406e6bb4539f9060c4be4888812d.tar.xz puppet-18c423dde9ad406e6bb4539f9060c4be4888812d.zip |
Fix Mageia.pm
-rw-r--r-- | modules/buildsystem/files/Mageia.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/buildsystem/files/Mageia.pm b/modules/buildsystem/files/Mageia.pm index ecb3d9db..74f83a75 100644 --- a/modules/buildsystem/files/Mageia.pm +++ b/modules/buildsystem/files/Mageia.pm @@ -264,6 +264,8 @@ sub get_replaced_packages { my @replaced_packages = $self->SUPER::get_replaced_packages($package, $target, $user_context, $app_context); + my $name = $package->get_name(); + # 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" |