mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
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>
This commit is contained in:
parent
e749995326
commit
44828e99f9
1 changed files with 3 additions and 0 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue