[Libreoffice-commits] .: Branch 'libreoffice-3-3' - solenv/bin

Petr Mladek pmladek at kemper.freedesktop.org
Fri Nov 5 06:59:48 PDT 2010


 solenv/bin/ooinstall |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit aca1fb370f5e76071dcc3e1be1958b2d2b3ce892
Author: Petr Mladek <pmladek at suse.cz>
Date:   Fri Nov 5 14:58:42 2010 +0100

    fix ooinstall to create the installation dir
    
    Cwd::realpath does not work if the path does not exist

diff --git a/solenv/bin/ooinstall b/solenv/bin/ooinstall
index 80f46b3..f1b9edf 100755
--- a/solenv/bin/ooinstall
+++ b/solenv/bin/ooinstall
@@ -8,6 +8,7 @@
 # 3. When packaging (called from package-ooo), to install to DESTDIR
 
 use File::Find;
+use File::Path qw(mkpath);
 use Cwd;
 
 $path = '';
@@ -38,10 +39,11 @@ $ENV{'PYTHONPATH'} = "$ENV{'SRC_ROOT'}/instsetoo_native/$ENV{'INPATH'}/bin:$ENV{
 for $arg (@ARGV) {
     if ($arg eq '-l') {
 	$do_link = 1;
-
     } elsif ($arg eq '-h' || $arg eq '--help') {
 	$help = 1;
     } else {
+	# Cwd::realpath does not work if the path does not exist
+	mkpath($arg) unless -d $arg;
 	$path = Cwd::realpath( $arg );
     }
 }


More information about the Libreoffice-commits mailing list