diff options
author | Darius Makovsky <traveltissues@protonmail.com> | 2019-07-12 14:35:50 +0100 |
---|---|---|
committer | Darius Makovsky <traveltissues@protonmail.com> | 2019-07-18 18:09:08 +0100 |
commit | 6d6ad3ded1e2996f057c5f2f1b0310e0f9f84b91 (patch) | |
tree | b612d1af7ff82cc3a0180fd35cb5a19ed67d36f5 | |
parent | 8faf789d9f3d43cfae5e921edfc13bcdcb7e6e6f (diff) | |
download | buildstream-6d6ad3ded1e2996f057c5f2f1b0310e0f9f84b91.tar.gz |
Remove recalculate kwarg from Workspace.get_key()
This is only used following key invalidation
-rw-r--r-- | src/buildstream/_workspaces.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buildstream/_workspaces.py b/src/buildstream/_workspaces.py index aa507bd63..a16c840e5 100644 --- a/src/buildstream/_workspaces.py +++ b/src/buildstream/_workspaces.py @@ -358,7 +358,7 @@ class Workspace(): # Returns: # (str) A unique key for this workspace # - def get_key(self, recalculate=False): + def get_key(self): def unique_key(filename): try: stat = os.lstat(filename) @@ -369,7 +369,7 @@ class Workspace(): # Use the mtime of any file with sub second precision return stat.st_mtime_ns - if recalculate or self._key is None: + if self._key is None: fullpath = self.get_absolute_path() excluded_files = (WORKSPACE_PROJECT_FILE,) |