[FIX] runbot: build garbage collection

This commit is contained in:
Julien Legros 2018-03-23 14:18:29 +01:00
parent f8cbae79e1
commit 3cacd8db52
No known key found for this signature in database
GPG Key ID: 05AABD5397BF114D

View File

@ -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