Bug 17986: Perl dependency evaluation incorrect
authorDavid Cook <dcook@prosentient.com.au>
Tue, 24 Jan 2017 22:58:40 +0000 (09:58 +1100)
committerKyle M Hall <kyle@bywatersolutions.com>
Mon, 30 Jan 2017 11:18:27 +0000 (11:18 +0000)
commit4ff78a9a0da486d7f267d1e252f3628ec1a5f149
tree78139ff91288bc046f48b9d6e3aea86b5daeb14f
parentbcf9fdafabcddc9b50f874969bb6a84beecbacc3
Bug 17986: Perl dependency evaluation incorrect

It looks like I made a copy/paste error in a previous patch.

While the fix was working when you pass the param "module" to
version_info, it wasn't populating the version correctly
for the "all" param, which causes koha_perl_deps.pl to
think all OK modules actually need an upgrade.

TEST PLAN

0) Be on a system where you know your Koha Perl dependencies are
mostly up-to-date

1) Run ./koha_perl_deps.pl -a -c
2) Note that most modules say they need an upgrade even when
the installed version is the same as the minimum version

3) Apply patch

4) Run ./koha_perl_deps.pl -a -c
5) Note that most moduls say they're OK, especially when the
installed version is the same or greater than the minimum version

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Running koha_perl_deps.pl -u convinced me.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
C4/Installer/PerlModules.pm