[Mesa-dev] [PATCH mesa] git_sha1_gen: create empty file in fallback path

Dylan Baker dylan at pnwbakers.com
Mon Oct 30 00:42:38 UTC 2017


Rb

On October 29, 2017 3:06:28 PM PDT, Eric Engestrom <eric at engestrom.ch> wrote:
>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 at engestrom.ch>
>---
> 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 @@ def get_git_sha1():
>                     quit()
>         with open(args.output, 'w') as git_sha1_h:
>             git_sha1_h.write(new_sha1)
>+else:
>+    open(args.output, 'w').close()
>-- 
>Cheers,
>  Eric
>
>_______________________________________________
>mesa-dev mailing list
>mesa-dev at lists.freedesktop.org
>https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list