Bug 7857 - [SIGNED-OFF] database upgrade fails with plack
authorDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 18 Jun 2012 08:32:00 +0000 (10:32 +0200)
committerPaul Poulain <paul.poulain@biblibre.com>
Wed, 20 Jun 2012 19:33:34 +0000 (21:33 +0200)
This patch fixes PERL5LIB path injection to include installer dir
which is required

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>

installer/install.pl

index 460a0c0..d9feac4 100755 (executable)
@@ -317,7 +317,7 @@ elsif ( $step && $step == 3 ) {
         my $find = "C4/Context.pm";
         my $path = $INC{$find};
         $path =~ s/\Q$find\E//;
-        $ENV{PERL5LIB} = $path;
+        $ENV{PERL5LIB} = "$path:$path/installer";
         warn "# plack? inserted PERL5LIB $ENV{PERL5LIB}\n";
     }