Bug 17618: perl-modules Debian package name change

Newer versios of perl-modules have a version number in the package name.
This patch makes Koha aware of perl-modules-5.22 and perl-modules-5.24

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Mirko Tietgen <mirko@abunchofthings.net>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
Mirko Tietgen 2016-11-12 08:50:04 +01:00 committed by Kyle M Hall
parent 765c7edc8d
commit 0c5905843d
2 changed files with 4 additions and 2 deletions

2
debian/control.in vendored
View File

@ -11,7 +11,7 @@ Standards-Version: 3.8.4
# There are some exceptions.
Build-Depends:__AUTODEPENDS__,
debhelper (>= 7.0.50), gettext, xsltproc, docbook-xsl, ttf-dejavu,
libxml2-utils, bash-completion, perl-modules (>= 5.14.2) | libtest-simple-perl (>= 0.98)
libxml2-utils, bash-completion, perl-modules (>= 5.14.2) | perl-modules-5.22 | perl-modules-5.24 | libtest-simple-perl (>= 0.98)
Package: koha-common
Architecture: all

4
debian/list-deps vendored
View File

@ -27,7 +27,7 @@ use C4::Installer::PerlDependencies;
# debian one.
my %overrides = (
'LWP::Protocol::https' => 'liblwp-protocol-https-perl|libwww-perl (<6.02), libio-socket-ssl-perl',
'IO::Socket::IP' => 'perl-modules (>= 5.20.0) | libio-socket-ip-perl',
'IO::Socket::IP' => 'perl-modules (>= 5.20.0) | perl-modules-5.22 | perl-modules-5.24 | libio-socket-ip-perl',
'Swagger2' => 'libswagger2-perl (>= 0.59)',
'Mojolicious' => 'libmojolicious-perl (>= 6.0)',
);
@ -71,6 +71,8 @@ foreach my $module ( keys %$deps ) {
foreach my $pkg (@lines) {
print " | " if ( $pkg ne $lines[0] );
print "$pkg";
print " | $pkg" . "-5.22" if ( $pkg eq "perl-modules" );
print " | $pkg" . "-5.24" if ( $pkg eq "perl-modules" );
}
print "\n";
}