followup fixes for new weighted build-queue

This commit is contained in:
2022-02-19 19:39:48 +01:00
parent ba159e0a72
commit 270889bf5c
4 changed files with 38 additions and 6 deletions

View File

@@ -168,7 +168,8 @@ func cleanBuildDir(dir string, chrootDir string) error {
if chrootDir != "" {
if stat, err := os.Stat(chrootDir); err == nil && stat.IsDir() {
err = os.RemoveAll(chrootDir)
rmCmd := exec.Command("rm_chroot.py", chrootDir)
_, err := rmCmd.CombinedOutput()
if err != nil {
return err
}