Module: Mesa
Branch: master
Commit: 2117d0331020874c28bb66b0596467f960259eb7
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=2117d0331020874c28bb66b0596467f960259eb7

Author: Eric Engestrom <[email protected]>
Date:   Sun Oct 29 22:06:28 2017 +0000

git_sha1_gen: create empty file in fallback path

I missed this part in my conversion, the old stream redirection meant
the file was always created.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103496
Fixes: 7088622e5fb506b64c90 "buildsys: move file regeneration logic to
       the script itself"
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Dylan Baker <[email protected]>

---

 bin/git_sha1_gen.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/bin/git_sha1_gen.py b/bin/git_sha1_gen.py
index 7b9267b59e..68a87e72ec 100755
--- a/bin/git_sha1_gen.py
+++ b/bin/git_sha1_gen.py
@@ -45,3 +45,5 @@ if git_sha1:
                     quit()
         with open(args.output, 'w') as git_sha1_h:
             git_sha1_h.write(new_sha1)
+else:
+    open(args.output, 'w').close()

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to