diff options
author | Tobias Klausmann <tobias.johannes.klausmann@mni.thm.de> | 2017-08-02 03:05:42 +0200 |
---|---|---|
committer | Eric Engestrom <eric.engestrom@imgtec.com> | 2017-08-02 14:28:58 +0100 |
commit | 44828e99f9b5f04f8e2f19dd671de4d67ee1f595 (patch) | |
tree | 0a9d68d7652bb3822016985d8c6d66dab2d9ce97 /bin | |
parent | e7499953267028f5d28257e0e932fafc346c2243 (diff) |
build: Don't bail on OSError in git_sha1_gen.py
When building sandboxed, we may encounter additional errors. Ignore the errors,
as we are in a constrained environment.
This can be observed when building latest git with OBS.
Signed-off-by: Tobias Klausmann <tobias.johannes.klausmann@mni.thm.de>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/git_sha1_gen.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/git_sha1_gen.py b/bin/git_sha1_gen.py index 6d13db1e16f3..fe30084a4f87 100755 --- a/bin/git_sha1_gen.py +++ b/bin/git_sha1_gen.py @@ -16,5 +16,8 @@ try: except subprocess.CalledProcessError as e: # don't print anything if git fails pass +except OSError as eos: + # don't fail on inaccessible files when sandboxed + pass else: sys.stdout.write('#define MESA_GIT_SHA1 "git-%s"\n' % git_sha1.rstrip()) |