Fix scons unable to build with sources tar archive (no git repo available in this case).

Reported by Clouclou over IRC, thanks!
This commit is contained in:
Bastien Montagne
2014-07-02 20:29:50 +02:00
parent 241a9b5c6e
commit e81b938631

View File

@@ -76,6 +76,9 @@ def get_hash():
except OSError: except OSError:
build_hash = None build_hash = None
print("WARNING: could not use git to retrieve current Blender repository hash...") print("WARNING: could not use git to retrieve current Blender repository hash...")
except subprocess.CalledProcessError as e:
build_hash = None
print("WARNING: git errored while retrieving current Blender repository hash (%d)..." % e.returncode)
if build_hash == '' or build_hash == None: if build_hash == '' or build_hash == None:
build_hash = 'UNKNOWN' build_hash = 'UNKNOWN'