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
On 2003-09-25 22:16:54 +0100 Chris Hobbs <chris@clanhobbs.org> wrote:
I understand from IRC that the upgrade script is still rough, but I wanted to share my experiences so far.
According to http://bugs.koha.org/cgi-bin/bugzilla/show_bug.cgi?id=487 it is not merely rough but broken. Unless someone knows better. If they do, please update the page.
participants (2)
-
Chris Hobbs -
MJ Ray