diff --git a/runbot/models/build.py b/runbot/models/build.py index 2bbc7085..b02ea8ff 100644 --- a/runbot/models/build.py +++ b/runbot/models/build.py @@ -317,7 +317,7 @@ class runbot_build(models.Model): for b in builds: path = os.path.join(build_dir, b) - if b not in actives and os.path.isdir(path) and not os.path.isabs(path): + if b not in actives and os.path.isdir(path) and os.path.isabs(path): shutil.rmtree(path) # cleanup old unused databases