diff options
author | Jose Fonseca <jfonseca@vmware.com> | 2015-03-23 10:48:31 +0000 |
---|---|---|
committer | Jose Fonseca <jfonseca@vmware.com> | 2015-03-25 10:42:26 +0000 |
commit | 5db57b8a55bb1961f1ada029f63c1f07511d60aa (patch) | |
tree | 955b37bce7fba1128a5752f984ae5a5d364eff9e /src | |
parent | 31a30fb342624658f9ab3f9febd06c59b3a3d2c8 (diff) | |
download | external_mesa3d-5db57b8a55bb1961f1ada029f63c1f07511d60aa.zip external_mesa3d-5db57b8a55bb1961f1ada029f63c1f07511d60aa.tar.gz external_mesa3d-5db57b8a55bb1961f1ada029f63c1f07511d60aa.tar.bz2 |
scons: Fix git_sha1.h generation fallback.
I didn't meant to remove the 'if not os.path.exists(filename)' statement.
Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/SConscript | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mesa/SConscript b/src/mesa/SConscript index a563fd2..5b80a21 100644 --- a/src/mesa/SConscript +++ b/src/mesa/SConscript @@ -130,9 +130,10 @@ def write_git_sha1_h_file(filename): (commit, foo) = subprocess.Popen(args, stdout=subprocess.PIPE).communicate() except: # git log command didn't work - dirname = os.path.dirname(filename) - if not os.path.exists(dirname): - os.makedirs(dirname) + if not os.path.exists(filename): + dirname = os.path.dirname(filename) + if not os.path.exists(dirname): + os.makedirs(dirname) # create an empty file if none already exists f = open(filename, "w") f.close() |