[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-devel] 2.0.0 upgrade script
From: |
Chris Hobbs |
Subject: |
[Koha-devel] 2.0.0 upgrade script |
Date: |
Thu Sep 25 14:24:06 2003 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 |
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
- [Koha-devel] 2.0.0 upgrade script,
Chris Hobbs <=