diff options
author | Valentin David <valentin.david@codethink.co.uk> | 2018-06-11 15:57:28 +0200 |
---|---|---|
committer | Valentin David <valentin.david@codethink.co.uk> | 2018-08-02 16:17:01 +0200 |
commit | 483b0223bccad8c4c843d445f6621eefe2000744 (patch) | |
tree | 268b53c18bb7446b7ee05b21672639ca4d63603a /buildstream/_platform | |
parent | 3bae4aebf7e95c04ea688469b77f8954848c02d5 (diff) | |
download | buildstream-483b0223bccad8c4c843d445f6621eefe2000744.tar.gz |
Make Project owner of Loader.
Diffstat (limited to 'buildstream/_platform')
-rw-r--r-- | buildstream/_platform/linux.py | 4 | ||||
-rw-r--r-- | buildstream/_platform/platform.py | 3 | ||||
-rw-r--r-- | buildstream/_platform/unix.py | 4 |
3 files changed, 5 insertions, 6 deletions
diff --git a/buildstream/_platform/linux.py b/buildstream/_platform/linux.py index 56ebb410e..a5fd0d687 100644 --- a/buildstream/_platform/linux.py +++ b/buildstream/_platform/linux.py @@ -30,9 +30,9 @@ from . import Platform class Linux(Platform): - def __init__(self, context, project): + def __init__(self, context): - super().__init__(context, project) + super().__init__(context) self._die_with_parent_available = _site.check_bwrap_version(0, 1, 8) self._user_ns_available = self._check_user_ns_available(context) diff --git a/buildstream/_platform/platform.py b/buildstream/_platform/platform.py index 29da33563..8a074eb62 100644 --- a/buildstream/_platform/platform.py +++ b/buildstream/_platform/platform.py @@ -35,9 +35,8 @@ class Platform(): # Args: # context (context): The project context # - def __init__(self, context, project): + def __init__(self, context): self.context = context - self.project = project @classmethod def create_instance(cls, *args, **kwargs): diff --git a/buildstream/_platform/unix.py b/buildstream/_platform/unix.py index be4c129d3..0306a4ac5 100644 --- a/buildstream/_platform/unix.py +++ b/buildstream/_platform/unix.py @@ -28,9 +28,9 @@ from . import Platform class Unix(Platform): - def __init__(self, context, project): + def __init__(self, context): - super().__init__(context, project) + super().__init__(context) self._artifact_cache = CASCache(context) # Not necessarily 100% reliable, but we want to fail early. |