[Notes] [Git][BuildStream/buildstream][mac_fixes] _platform/linux.py: Ensure exception is not raised when performing sandbox availability check



Title: GitLab

James Ennis pushed to branch mac_fixes at BuildStream / buildstream

Commits:

1 changed file:

Changes:

  • buildstream/_platform/linux.py
    ... ... @@ -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,
    



  • [Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]