set Locale::Currency::Format dep test as DBrev 119

Also fixed bug that prevented updatedatabase.pl
from compiling if Locale::Currency::Format wasn't
already installed.  To test to see if module is present,
do

eval{require Locale::Currency::Format};

not

eval{use Locale::Currency::Format};

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
Galen Charlton 2010-02-17 06:39:22 -05:00
parent 8724f88bdb
commit 44967351ef
2 changed files with 3 additions and 3 deletions

View file

@ -3457,9 +3457,9 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
SetVersion ($DBversion);
}
$DBversion = '3.01.00.XXX';
$DBversion = '3.01.00.119';
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
eval{use Locale::Currency::Format};
eval{require Locale::Currency::Format};
if (!$@) {
print "Upgrade to $DBversion done (Locale::Currency::Format installed.)\n";
SetVersion ($DBversion);

View file

@ -10,7 +10,7 @@
use strict;
sub kohaversion {
our $VERSION = '3.01.00.118';
our $VERSION = '3.01.00.119';
# version needs to be set this way
# so that it can be picked up by Makefile.PL
# during install