summaryrefslogtreecommitdiff
path: root/solenv/bin/modules/installer/servicesfile.pm
diff options
context:
space:
mode:
Diffstat (limited to 'solenv/bin/modules/installer/servicesfile.pm')
-rw-r--r--solenv/bin/modules/installer/servicesfile.pm16
1 files changed, 11 insertions, 5 deletions
diff --git a/solenv/bin/modules/installer/servicesfile.pm b/solenv/bin/modules/installer/servicesfile.pm
index 38c21a57593b..63e5f44125c8 100644
--- a/solenv/bin/modules/installer/servicesfile.pm
+++ b/solenv/bin/modules/installer/servicesfile.pm
@@ -133,12 +133,14 @@ sub register_unocomponents
my $filestring = "";
for ( my $i = 0; $i <= $#{$unocomponents}; ++$i )
{
+ my $local_error1_occured = 0;
+ my $local_error2_occured = 0;
+
my $sourcepath = make_file_url(${$unocomponents}[$i]->{'sourcepath'});
my $urlprefix = ${$unocomponents}[$i]->{'NativeServicesURLPrefix'};
if (defined($urlprefix))
{
- call_regcomp(
- $regcompfileref, $servicesfile, $sourcepath, $urlprefix);
+ $local_error1_occured = call_regcomp($regcompfileref, $servicesfile, $sourcepath, $urlprefix);
}
else
{
@@ -148,11 +150,11 @@ sub register_unocomponents
if (length($filestring) > $installer::globals::unomaxservices ||
($i == $#{$unocomponents} && $filestring ne ""))
{
- call_regcomp(
- $regcompfileref, $servicesfile, $filestring,
- $nativeservicesurlprefix);
+ $local_error2_occured = call_regcomp($regcompfileref, $servicesfile, $filestring, $nativeservicesurlprefix);
$filestring = "";
}
+
+ if (( $local_error1_occured ) || ( $local_error2_occured )) { $error_occured = 1; }
}
return $error_occured;
@@ -163,6 +165,8 @@ sub call_regcomp
my ($regcompfileref, $servicesfile, $filestring, $urlprefix) = @_;
my @regcompoutput = ();
+ my $error_occured = 0;
+
my $systemcall = "$installer::globals::wrapcmd $$regcompfileref -register -r ".fix_cygwin_path($servicesfile)." -c " . $installer::globals::quote . $filestring . $installer::globals::quote . " -wop=" . $installer::globals::quote . $urlprefix . $installer::globals::quote . " 2\>\&1 |";
open (REG, "$systemcall");
@@ -187,6 +191,8 @@ sub call_regcomp
$infoline = "SUCCESS: $systemcall\n";
push( @installer::globals::logfileinfo, $infoline);
}
+
+ return $error_occured;
}
################################################################