Ticket #294: ORLite-Migrate-0.02-patch-perl.diff

File ORLite-Migrate-0.02-patch-perl.diff, 1.0 KB (added by random, 5 years ago)

Proposed quickfix for ORLite-Migrate when running under PAR and perl interpreter is not available in same location as on build machine

  • ORLite-Migrate-0.02

    diff -u -r ORLite-Migrate-0.02/Changes ORLite-Migrate-0.02.new/Changes
    old new  
    11Changes for Perl extension ORLite-Migrate 
    22 
     3    - Use a default perl interpreter "perl" in case Probe::Perl fails  
     4      (e.g. running under PAR and original perl is not available) 
     5 
    360.02 Mon 16 Feb 2009 
    47    - Updating to Module::Install 0.79 
    58    - Support creation of database in subdirectories 
  • lib/ORLite/Migrate.pm

    diff -u -r ORLite-Migrate-0.02/lib/ORLite/Migrate.pm ORLite-Migrate-0.02.new/lib/ORLite/Migrate.pm
    old new  
    100100        require IPC::Run3; 
    101101 
    102102        # Execute each script 
    103         my $perl  = Probe::Perl->find_perl_interpreter; 
     103        my $perl  = Probe::Perl->find_perl_interpreter || "perl"; 
    104104        my $pushd = File::pushd::pushd($timeline); 
    105105        foreach my $patch ( @plan ) { 
    106106            my $stdin = "$file\n";