From 44967351ef796efbc66746f4b1200f2ec60fec12 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Wed, 17 Feb 2010 06:39:22 -0500 Subject: [PATCH] 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 --- installer/data/mysql/updatedatabase.pl | 4 ++-- kohaversion.pl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 90c10e93fe..6c17757692 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -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); diff --git a/kohaversion.pl b/kohaversion.pl index 0af70612ba..41935400cb 100644 --- a/kohaversion.pl +++ b/kohaversion.pl @@ -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 -- 2.39.5