James Ennis pushed to branch mac_fixes at BuildStream / buildstream
Commits:
-
6323e666
by James Ennis at 2018-09-21T13:52:02Z
1 changed file:
Changes:
... | ... | @@ -65,7 +65,10 @@ class Linux(Platform): |
65 | 65 |
# Private Methods #
|
66 | 66 |
################################################
|
67 | 67 |
def _local_sandbox_available(self):
|
68 |
- return os.path.exists(utils.get_host_tool('bwrap')) and os.path.exists('/dev/fuse')
|
|
68 |
+ try:
|
|
69 |
+ return os.path.exists(utils.get_host_tool('bwrap')) and os.path.exists('/dev/fuse')
|
|
70 |
+ except utils.ProgramNotFoundError:
|
|
71 |
+ return False
|
|
69 | 72 |
|
70 | 73 |
def _check_user_ns_available(self, context):
|
71 | 74 |
# Here, lets check if bwrap is able to create user namespaces,
|