[Koha-devel] 2.0.0 upgrade script
Chris Hobbs
chris at clanhobbs.org
Thu Sep 25 14:24:06 CEST 2003
I understand from IRC that the upgrade script is still rough, but I wanted
to share my experiences so far.
I'm running Perl v5.8.0 built for i386-linux-thread-multi.
I had to add the line $etcdir = "/etc" to loadconfigfile() in Install.pm - I
also added print "$variable = $value\n"; in the while lop in that function
to confirm that the values were in fact being loaded from the config file.
However, once the script returns to koha.upgrade, $::kohaversion is not set,
so the upgrade notice uses "unknown version" in its output.
I also get the following warnings:
Name "main::hostname" used only once: possible typo at ./koha.upgrade line 111.
Name "main::pass" used only once: possible typo at ./koha.upgrade line 111.
Name "main::language" used only once: possible typo at ./koha.upgrade line 7.
Name "main::database" used only once: possible typo at ./koha.upgrade line 111.
Name "main::user" used only once: possible typo at ./koha.upgrade line 111.
These imply to me that $:: is not actually getting set with the values from
loadconfigfile(). I'm not a stranger to Perl, but I don't recall seeing the
$:: notation before, so I'm not sure where to look for a solution to this.
Thanks for your help,
--
cgh
More information about the Koha-devel
mailing list