summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorEric Engestrom <eric@engestrom.ch>2017-10-29 22:06:28 +0000
committerEric Engestrom <eric.engestrom@imgtec.com>2017-10-30 17:21:58 +0000
commit2117d0331020874c28bb66b0596467f960259eb7 (patch)
treeb0d82f1dd09f273a8df613b070643396b241bf64 /bin
parenta1faf48636f438992b17be50dec656a0c74c5585 (diff)
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 <eric@engestrom.ch> Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/git_sha1_gen.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/git_sha1_gen.py b/bin/git_sha1_gen.py
index 7b9267b59e9..68a87e72ec5 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()