[Libreoffice-commits] core.git: Branch 'aoo/trunk' - solenv/bin

Damjan Jovanovic damjan at apache.org
Thu Jul 28 06:08:32 UTC 2016


 solenv/bin/download_external_dependencies.pl |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

New commits:
commit ad3e8774955aa8779ed5c4afbd5903f40e2d9c84
Author: Damjan Jovanovic <damjan at 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;
     }
 }
 


More information about the Libreoffice-commits mailing list