Bug 19735: Add support for max_ver
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 7 Feb 2020 16:51:33 +0000 (16:51 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 12 Feb 2020 16:33:02 +0000 (16:33 +0000)
commitcc595325d6dc7f5bbf398357cacaf490e40794f8
treea86f38651073ef43e10150b252a16d48fd57d3ee
parentfaa89f406d524b65accf0e101746f87ca53ad63e
Bug 19735: Add support for max_ver

This patchset adds support for extracting 'max_ver' from the cpanfile so
we can use version ranges properly and report errors if we have modules
installed that do not fit within that version range.

Test plan:
1) Manually modify the module version of a required module in the cpanfile
   to have a max version greater than the version you have installed.
2) Run through the install proceedure and note the new warning that a
   module needs upgrade for the module in question.
3) The module should also be reported in the about page

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
C4/Installer/PerlModules.pm
about.pl
installer/install.pl
koha-tmpl/intranet-tmpl/prog/en/modules/about.tt
koha-tmpl/intranet-tmpl/prog/en/modules/installer/step1.tt