Added clean mock cache

This commit is contained in:
Alexey Berezhok
2025-12-04 23:18:15 +03:00
parent f2136260c9
commit 482a586b6e
5 changed files with 43 additions and 0 deletions

View File

@@ -321,4 +321,10 @@ class MockManager
@db.after_fork
end
def self.clean_mock
cmd_args = %Q(/usr/bin/mock --scrub-all-chroots)
cmd = Runner.new(cmd_args)
cmd.run_clean
end
end