Kaydet (Commit) dee36f28 authored tarafından Petr Mladek's avatar Petr Mladek

fix ooinstall to create the installation dir

Cwd::realpath does not work if the path does not exist
üst 00d479a3
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
# 3. When packaging (called from package-ooo), to install to DESTDIR # 3. When packaging (called from package-ooo), to install to DESTDIR
use File::Find; use File::Find;
use File::Path qw(mkpath);
use Cwd; use Cwd;
$path = ''; $path = '';
...@@ -38,10 +39,11 @@ $ENV{'PYTHONPATH'} = "$ENV{'SRC_ROOT'}/instsetoo_native/$ENV{'INPATH'}/bin:$ENV{ ...@@ -38,10 +39,11 @@ $ENV{'PYTHONPATH'} = "$ENV{'SRC_ROOT'}/instsetoo_native/$ENV{'INPATH'}/bin:$ENV{
for $arg (@ARGV) { for $arg (@ARGV) {
if ($arg eq '-l') { if ($arg eq '-l') {
$do_link = 1; $do_link = 1;
} elsif ($arg eq '-h' || $arg eq '--help') { } elsif ($arg eq '-h' || $arg eq '--help') {
$help = 1; $help = 1;
} else { } else {
# Cwd::realpath does not work if the path does not exist
mkpath($arg) unless -d $arg;
$path = Cwd::realpath( $arg ); $path = Cwd::realpath( $arg );
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment