From 8a935d53c97af7ccabbecad201c7143311996895 Mon Sep 17 00:00:00 2001 From: Darius Makovsky Date: Fri, 12 Jul 2019 14:35:50 +0100 Subject: Remove recalculate kwarg from Workspace.get_key() This is only used following key invalidation --- src/buildstream/_workspaces.py | 4 ++-- 1 file 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,) -- cgit v1.2.1