[Mesa-dev] [PATCH 1/8] scons: Fix git_sha1.h generation fallback.
Jose Fonseca
jfonseca at vmware.com
Tue Mar 24 14:16:37 PDT 2015
I didn't meant to remove the 'if not os.path.exists(filename)' statement.
---
src/mesa/SConscript | 7 ++++---
1 file 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()
--
2.1.0
More information about the mesa-dev
mailing list