diff options
-rw-r--r-- | src/buildstream/_context.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/buildstream/_context.py b/src/buildstream/_context.py index 87b23d50c..34fc6f274 100644 --- a/src/buildstream/_context.py +++ b/src/buildstream/_context.py @@ -303,10 +303,9 @@ class Context: os.symlink(self.casdir, old_casdir) # Cleanup old extract directories - old_extractdirs = [os.path.join(self.cachedir, "artifacts", "extract"), os.path.join(self.cachedir, "extract")] - for old_extractdir in old_extractdirs: - if os.path.isdir(old_extractdir): - shutil.rmtree(old_extractdir, ignore_errors=True) + old_extractdir = os.path.join(self.cachedir, "extract") + if os.path.isdir(old_extractdir): + shutil.rmtree(old_extractdir, ignore_errors=True) # Load quota configuration # We need to find the first existing directory in the path of our |