[Libreoffice-commits] .: solenv/bin

Petr Mladek pmladek at kemper.freedesktop.org
Fri Nov 5 07:00:56 PDT 2010


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

New commits:
commit 7d0eb1aaa87eea5d7a703297769e3ca561434ae4
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 f848ea8..35cda0c 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