aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@gmail.com>2016-12-05 23:55:57 +0000
committerPascal Terjan <pterjan@gmail.com>2016-12-05 23:55:57 +0000
commitb8108b097788ff600aac51b38786aba3aff1eb36 (patch)
tree872d48ef6da22b23dff0e7dfb517a6dd281b279a /modules/buildsystem
parentc249d3dc7f4eda9961ca589d935dbbae75c95f00 (diff)
downloadpuppet-b8108b097788ff600aac51b38786aba3aff1eb36.tar
puppet-b8108b097788ff600aac51b38786aba3aff1eb36.tar.gz
puppet-b8108b097788ff600aac51b38786aba3aff1eb36.tar.bz2
puppet-b8108b097788ff600aac51b38786aba3aff1eb36.tar.xz
puppet-b8108b097788ff600aac51b38786aba3aff1eb36.zip
Delete broken unwanted code
We actually do not want to delete old major of a lib before packages get rebuilt with the new one.
Diffstat (limited to 'modules/buildsystem')
-rw-r--r--modules/buildsystem/files/Mageia.pm21
1 files changed, 0 insertions, 21 deletions
diff --git a/modules/buildsystem/files/Mageia.pm b/modules/buildsystem/files/Mageia.pm
index 2f39a1ab..ecb3d9db 100644
--- a/modules/buildsystem/files/Mageia.pm
+++ b/modules/buildsystem/files/Mageia.pm
@@ -264,27 +264,6 @@ sub get_replaced_packages {
my @replaced_packages =
$self->SUPER::get_replaced_packages($package, $target, $user_context, $app_context);
- # mandriva lib policy:
- # library package names change with revision, making mandatory to
- # duplicate older revisions search with a custom pattern
- my $name = $package->get_name();
- if ($name =~ /^(lib\w+[a-zA-Z_])[\d_\.]+([-\w]*)$/) {
- push(@replaced_packages,
- grep { $package->compare($_) > 0 }
- map { PACKAGE_CLASS->new(file => $_) }
- $self->get_files(
- $self->{_install_root},
- $self->get_install_path($package, $target, $user_context, $app_context),
- PACKAGE_CLASS->get_pattern(
- $1 . '[\d_\.]+' . $2, # custom name pattern
- undef,
- undef,
- $package->get_arch()
- ),
- )
- );
- }
-
# 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"