summaryrefslogtreecommitdiff
path: root/solenv/bin/modules/installer/archivefiles.pm
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-06-22 09:20:24 +0000
committerOliver Bolte <obo@openoffice.org>2004-06-22 09:20:24 +0000
commit41bfd203f176ab3a7de358d4bb0e1f790607fcfc (patch)
tree10a2bdeb1303b33df68164a3ee666cb23d26af33 /solenv/bin/modules/installer/archivefiles.pm
parent304195fa9e4ec6e36c04a089f55969f2e7ed2c9d (diff)
#i10000# chmod 775 for directories in zip files
Diffstat (limited to 'solenv/bin/modules/installer/archivefiles.pm')
-rw-r--r--solenv/bin/modules/installer/archivefiles.pm20
1 files changed, 18 insertions, 2 deletions
diff --git a/solenv/bin/modules/installer/archivefiles.pm b/solenv/bin/modules/installer/archivefiles.pm
index ee727af0b110..f85af1028a8b 100644
--- a/solenv/bin/modules/installer/archivefiles.pm
+++ b/solenv/bin/modules/installer/archivefiles.pm
@@ -2,9 +2,9 @@
#
# $RCSfile: archivefiles.pm,v $
#
-# $Revision: 1.3 $
+# $Revision: 1.4 $
#
-# last change: $Author: kz $ $Date: 2004-06-11 18:14:22 $
+# last change: $Author: obo $ $Date: 2004-06-22 10:20:24 $
#
# The Contents of this file are made available subject to the terms of
# either of the following licenses
@@ -174,6 +174,22 @@ sub resolving_archive_flag
{
installer::exiter::exit_program("ERROR: $infoline", "resolving_archive_flag");
}
+
+ if ( ! $installer::globals::iswindowsbuild )
+ {
+ # Setting unix rights to "775" for all created directories inside the package
+
+ $systemcall = "cd $unzipdir; find . -type d -exec chmod 775 \{\} \\\;";
+ $returnvalue = system($systemcall);
+ $infoline = "Systemcall: $systemcall\n";
+ push( @installer::globals::logfileinfo, $infoline);
+
+ if ($returnvalue)
+ {
+ $infoline = "ERROR: Could not execute \"$systemcall\"!\n";
+ push( @installer::globals::logfileinfo, $infoline);
+ }
+ }
}
}