mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[FIX] runbot: build garbage collection
This commit is contained in:
parent
f8cbae79e1
commit
3cacd8db52
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user