From 3cacd8db52a6f303cb5d2eeb93559dad33da8958 Mon Sep 17 00:00:00 2001 From: Julien Legros Date: Fri, 23 Mar 2018 14:18:29 +0100 Subject: [PATCH] [FIX] runbot: build garbage collection --- runbot/models/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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