Enhancement Bug 4444: Centralize Code Handling Perl Dependencies
authorChris Nighswonger <cnighswonger@foundations.edu>
Sat, 15 May 2010 22:13:11 +0000 (18:13 -0400)
committerGalen Charlton <gmcharlt@gmail.com>
Mon, 17 May 2010 13:01:37 +0000 (09:01 -0400)
commit1f32ecbc8ed9374c7fe7ecf89e48f310db1eab61
tree49b6075c2c4aec1f5c61168f7ae47c321d1a060b
parent60be9d291fa5defa671c5f6b6d3a5414e884944d
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]