Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2014-07-02 22:29:50 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2014-07-02 22:30:50 +0400
commite81b9386318a00beb949e23f08ddb0aba7bfc0a9 (patch)
tree7c4ed8b4774b6a44d81eec102f914bb37129c936 /build_files
parent241a9b5c6e9f272b17adee8c09ed454637e13879 (diff)
Fix scons unable to build with sources tar archive (no git repo available in this case).
Reported by Clouclou over IRC, thanks!
Diffstat (limited to 'build_files')
-rw-r--r--build_files/scons/tools/btools.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/build_files/scons/tools/btools.py b/build_files/scons/tools/btools.py
index 4124d066734..214827b6668 100644
--- a/build_files/scons/tools/btools.py
+++ b/build_files/scons/tools/btools.py
@@ -76,6 +76,9 @@ def get_hash():
except OSError:
build_hash = None
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:
build_hash = 'UNKNOWN'