code cleanup; switch to rm_chroot to remove builddir; new linter conf

This commit is contained in:
2023-06-21 12:54:45 +02:00
parent 442b793524
commit b83c0ecfc8
3 changed files with 8 additions and 2 deletions

View File

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