diff options
author | Rosen Penev <rosenp@gmail.com> | 2022-09-06 01:36:17 -0700 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2022-09-07 08:46:50 -0400 |
commit | 26acf2152dd8c56f2eadc4d6a8bfc6cb86c62981 (patch) | |
tree | 01107b18e40b182060408dd6f6ecc7f106fefb18 /mesonbuild/minstall.py | |
parent | a289e5416b88f0f24ae668a6cc921c28b72ceae7 (diff) | |
download | meson-26acf2152dd8c56f2eadc4d6a8bfc6cb86c62981.zip meson-26acf2152dd8c56f2eadc4d6a8bfc6cb86c62981.tar.gz meson-26acf2152dd8c56f2eadc4d6a8bfc6cb86c62981.tar.bz2 |
minstall: handle extra error for selinuxenabled
Microsoft's WSL2 uses a Plan 9 filesystem, which returns IOError when file is missing.
Diffstat (limited to 'mesonbuild/minstall.py')
-rw-r--r-- | mesonbuild/minstall.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/minstall.py b/mesonbuild/minstall.py index a810ccb..69763fa 100644 --- a/mesonbuild/minstall.py +++ b/mesonbuild/minstall.py @@ -235,7 +235,7 @@ def restore_selinux_contexts() -> None: ''' try: subprocess.check_call(['selinuxenabled']) - except (FileNotFoundError, NotADirectoryError, PermissionError, subprocess.CalledProcessError): + except (FileNotFoundError, NotADirectoryError, OSError, PermissionError, subprocess.CalledProcessError): # If we don't have selinux or selinuxenabled returned 1, failure # is ignored quietly. return |