[Libreoffice-commits] .: Branch 'libreoffice-3-5' - solenv/bin

Caolán McNamara caolan at kemper.freedesktop.org
Thu Jan 26 08:48:10 PST 2012


 solenv/bin/modules/installer/scriptitems.pm |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 9abb0b6bbe2de65988065f78354ccf5ebde4a7ae
Author: Miklos Vajna <vmiklos at frugalware.org>
Date:   Thu Jan 26 17:27:03 2012 +0100

    solenv: handle error code from ./g
    
    This avoids "Cannot find the git binary! Is git installed and is in
    PATH?" strings in the about dialog when building from a tarball.
    (cherry picked from commit 439e5279c5d334f849a6ab7b51bad1bb12f13aae)
    
    Conflicts:
    
    	solenv/bin/modules/installer/scriptitems.pm

diff --git a/solenv/bin/modules/installer/scriptitems.pm b/solenv/bin/modules/installer/scriptitems.pm
index bb8fe55..fb5c9c4 100644
--- a/solenv/bin/modules/installer/scriptitems.pm
+++ b/solenv/bin/modules/installer/scriptitems.pm
@@ -816,7 +816,7 @@ sub replace_setup_variables
     if ( $localbuild =~ /^\s*(\w+?)(\d+)\s*$/ ) { $localbuild = $2; }   # using "680" instead of "src680"
 
     my $buildidstring = `$ENV{'SRC_ROOT'}/g -s log -n 1 --pretty=format:%h-`;
-    if (!$buildidstring) {
+    if ($? || !$buildidstring) {
         $buildidstring = $localbuild . $localminor . "(Build:" . $installer::globals::buildid . ")";
     }
     else {


More information about the Libreoffice-commits mailing list