diff options
-rw-r--r-- | buildstream/_workspaces.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/buildstream/_workspaces.py b/buildstream/_workspaces.py index 466c55ce7..24a3cc8d3 100644 --- a/buildstream/_workspaces.py +++ b/buildstream/_workspaces.py @@ -370,10 +370,15 @@ class Workspace(): if recalculate or self._key is None: fullpath = self.get_absolute_path() + excluded_files = (WORKSPACE_PROJECT_FILE,) + # Get a list of tuples of the the project relative paths and fullpaths if os.path.isdir(fullpath): filelist = utils.list_relative_paths(fullpath) - filelist = [(relpath, os.path.join(fullpath, relpath)) for relpath in filelist] + filelist = [ + (relpath, os.path.join(fullpath, relpath)) for relpath in filelist + if relpath not in excluded_files + ] else: filelist = [(self.get_absolute_path(), fullpath)] |