summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2018-02-24 10:56:45 +0100
committerJürg Billeter <j@bitron.ch>2018-02-24 11:03:37 +0000
commit34bf8a0d74af03fbf68e96259e09815d0b48b622 (patch)
tree337e1d44250f225ecc174e92f1fb4b4791f7219c
parentcacb34a7e93ab77d3c1926ff298803acbc219f5b (diff)
downloadbuildstream-34bf8a0d74af03fbf68e96259e09815d0b48b622.tar.gz
_artifactcache/ostreecache.py: Make enable_push a keyword argument
Boolean positional arguments can be confusing.
-rw-r--r--buildstream/_artifactcache/ostreecache.py2
-rw-r--r--buildstream/_platform/linux.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/buildstream/_artifactcache/ostreecache.py b/buildstream/_artifactcache/ostreecache.py
index 68868e03b..2c5d9c392 100644
--- a/buildstream/_artifactcache/ostreecache.py
+++ b/buildstream/_artifactcache/ostreecache.py
@@ -65,7 +65,7 @@ def buildref(element, key):
#
class OSTreeCache(ArtifactCache):
- def __init__(self, context, enable_push):
+ def __init__(self, context, *, enable_push):
super().__init__(context)
self.enable_push = enable_push
diff --git a/buildstream/_platform/linux.py b/buildstream/_platform/linux.py
index 5ca1878b9..c180cc60a 100644
--- a/buildstream/_platform/linux.py
+++ b/buildstream/_platform/linux.py
@@ -36,7 +36,7 @@ class Linux(Platform):
self._user_ns_available = False
self.check_user_ns_available(context)
- self._artifact_cache = OSTreeCache(context, self._user_ns_available)
+ self._artifact_cache = OSTreeCache(context, enable_push=self._user_ns_available)
def check_user_ns_available(self, context):