solenv/bin/download_external_dependencies.pl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
New commits: commit ad3e8774955aa8779ed5c4afbd5903f40e2d9c84 Author: Damjan Jovanovic <dam...@apache.org> Date: Thu Jul 28 04:38:47 2016 +0000 Perl returns the exit code of a subprocess shifted right by 8 bits. Shift it left before use. Patch by: me diff --git a/solenv/bin/download_external_dependencies.pl b/solenv/bin/download_external_dependencies.pl index 3990e34..ddef6dd 100755 --- a/solenv/bin/download_external_dependencies.pl +++ b/solenv/bin/download_external_dependencies.pl @@ -534,17 +534,18 @@ sub DownloadFile ($$$) $URL); } - if ($? == 0) + my $rc = $? >> 8; + if ($rc == 0) { return 1; } - elsif ($? == 1) + elsif ($rc == 1) { return 0; } else { - exit $?; + exit $rc; } } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits