Bug 17986: Perl dependency evaluation incorrect
authorDavid Cook <dcook@prosentient.com.au>
Tue, 24 Jan 2017 22:58:40 +0000 (09:58 +1100)
committerMason James <mtj@kohaaloha.com>
Sun, 29 Jan 2017 11:56:10 +0000 (00:56 +1300)
commit2367660e9dbc2052b2690a2c939d2a441863fbc0
treeddea5da815681b5f155de9457be26fed45dce057
parentd9ca2a9dfc6321a875af7a7ddad7e16dcee5f6b9
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: Mason James <mtj@kohaaloha.com>
C4/Installer/PerlModules.pm