Module: Mesa Branch: master Commit: adea68a8a26767c46a6d5bee410c5a334f9226d1 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=adea68a8a26767c46a6d5bee410c5a334f9226d1
Author: Eric Engestrom <[email protected]> Date: Wed Aug 2 15:01:21 2017 +0100 git_sha1_gen: fix output on python3 String handling has changed on python3. Before this patch, on python3: #define MESA_GIT_SHA1 "git-b'b99dcbfeb3'" After: #define MESA_GIT_SHA1 "git-b99dcbfeb3" (No change on python2, it always looked ok) Cc: Jose Fonseca <[email protected]> Fixes: b99dcbfeb344390fea99 "build: Convert git_sha1_gen script to Python." Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Jose Fonseca <[email protected]> --- bin/git_sha1_gen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/git_sha1_gen.py b/bin/git_sha1_gen.py index e26d3a3f76..97981fbba2 100755 --- a/bin/git_sha1_gen.py +++ b/bin/git_sha1_gen.py @@ -12,7 +12,7 @@ try: 'rev-parse', '--short=10', 'HEAD', - ], stderr=open(os.devnull, 'w')) + ], stderr=open(os.devnull, 'w')).decode("ascii") except: # don't print anything if it fails pass _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
