[Libreoffice-commits] .: solenv/bin
Caolán McNamara
caolan at kemper.freedesktop.org
Sun Jan 9 12:33:07 PST 2011
solenv/bin/modules/installer/epmfile.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit ba952bd817dce01b7193d29687d01eed9a14d795
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Sun Jan 9 20:32:56 2011 +0000
Reducing spawning of chmod with xargs instead of exec
diff --git a/solenv/bin/modules/installer/epmfile.pm b/solenv/bin/modules/installer/epmfile.pm
index 9e9ef1e..84efc6e 100644
--- a/solenv/bin/modules/installer/epmfile.pm
+++ b/solenv/bin/modules/installer/epmfile.pm
@@ -2408,7 +2408,7 @@ sub create_packages_without_epm
# Setting unix rights to "775" for all created directories inside the package,
# that is saved in temp directory
- $systemcall = "cd $packagestempdir; find $packagename -type d -exec chmod 775 \{\} \\\;";
+ $systemcall = "cd $packagestempdir; find $packagename -type d | xargs -i chmod 775 \{\} \;";
installer::logger::print_message( "... $systemcall ...\n" );
$returnvalue = system($systemcall);
@@ -2471,7 +2471,7 @@ sub create_packages_without_epm
# Setting unix rights to "775" for all created directories inside the package
- $systemcall = "cd $destinationdir; find $packagename -type d -exec chmod 775 \{\} \\\;";
+ $systemcall = "cd $destinationdir; find $packagename -type d | xargs -i chmod 775 \{\} \;";
installer::logger::print_message( "... $systemcall ...\n" );
$returnvalue = system($systemcall);
More information about the Libreoffice-commits
mailing list