summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2019-03-13 10:53:21 +0000
committerJürg Billeter <j@bitron.ch>2019-03-14 11:28:37 +0000
commitedd440721f28ac1db087509a2b99f5a4a57fa802 (patch)
tree79d00b5288cd0d747108032d6d47dd4e413d404d
parent4b2c66bac96df34568a82e26b96e1801449b836c (diff)
downloadbuildstream-edd440721f28ac1db087509a2b99f5a4a57fa802.tar.gz
_casbaseddirectory.py: Use variable-length argument list for _exists()
This matches Directory.descend() and _objpath().
-rw-r--r--buildstream/storage/_casbaseddirectory.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/storage/_casbaseddirectory.py b/buildstream/storage/_casbaseddirectory.py
index f977fbf77..ec0fb36da 100644
--- a/buildstream/storage/_casbaseddirectory.py
+++ b/buildstream/storage/_casbaseddirectory.py
@@ -582,7 +582,7 @@ class CasBasedDirectory(Directory):
entry = subdir.index[path[-1]]
return self.cas_cache.objpath(entry.digest)
- def _exists(self, path):
+ def _exists(self, *path):
try:
subdir = self.descend(*path[:-1])
return path[-1] in subdir.index