diff options
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/bin/modules/installer/simplepackage.pm | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/solenv/bin/modules/installer/simplepackage.pm b/solenv/bin/modules/installer/simplepackage.pm index 13dc81c0060a..e134eb4185ad 100644 --- a/solenv/bin/modules/installer/simplepackage.pm +++ b/solenv/bin/modules/installer/simplepackage.pm @@ -392,11 +392,12 @@ sub create_package chdir $localfrom; if ( $ENV{'MACOSX_CODESIGNING_IDENTITY'} ) { - my @lp_sign = ('codesign', '--verbose', '--sign', $ENV{'MACOSX_CODESIGNING_IDENTITY'}, '--deep', $appfolder); - if (system(@lp_sign) == 0) { - $infoline = "Success: \"@lp_sign\" executed successfully!\n"; + my $lp_sign = "codesign --verbose --sign $ENV{'MACOSX_CODESIGNING_IDENTITY'} --deep '$appfolder'" ; + my $output = `$lp_sign 2>&1`; + unless ($?) { + $infoline = "Success: \"$lp_sign\" executed successfully!\n"; } else { - $infoline = "ERROR: Could not codesign the languagepack using \"@lp_sign\"!\n"; + $infoline = "ERROR: Could not codesign the languagepack using \"$lp_sign\"!\n$output\n"; } push( @installer::globals::logfileinfo, $infoline); } |