Enhancement Bug 4444: Centralize Code Handling Perl Dependencies
authorChris Nighswonger <cnighswonger@foundations.edu>
Sat, 15 May 2010 22:13:11 +0000 (18:13 -0400)
committerChris Cormack <chrisc@catalyst.net.nz>
Wed, 19 May 2010 04:55:36 +0000 (16:55 +1200)
commit52df15548079c0275d290cb30235840decf96021
tree2b1466ac7ea3a515281482728a2dc767ccb27327
parent451b4cfb0464e636bb52513fc9b3c0c6f8fd2959
Enhancement Bug 4444: Centralize Code Handling Perl Dependencies

This patch adds two modules: C4::Installer::PerlModule and C4::Installer::PerlDependencies. The latter provides a single point
of reference for cataloging Koha Perl dependencies. The former provides an OO style interface to the dependency catalog.

The format of C4::Installer::PerlDependencies is very simply an anonymous hash of hashes. Each second level hash takes this form:

'Foo::Bar' => {
  'usage'    => 'FooBar Feature',
  'required' => '1', # 0 if optional
  'min_ver'  => '0.01',
},

New modules can be appended to C4::Installer::PerlDependencies as needed and will be picked up by every piece of code which needs
this information.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
C4/Installer.pm
C4/Installer/PerlDependencies.pm [new file with mode: 0644]
C4/Installer/PerlModules.pm [new file with mode: 0644]