From d59a6cb08e1f3d2e8ea0476468b31c97c2d1aff8 Mon Sep 17 00:00:00 2001 From: Jerry Date: Wed, 10 Apr 2019 21:20:30 +0800 Subject: [PATCH] fix rebuild problem --- buildbot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildbot.py b/buildbot.py index 8374255..e95ebd3 100755 --- a/buildbot.py +++ b/buildbot.py @@ -98,10 +98,10 @@ class jobsManager: return True def rebuild_package(self, pkgdirname, clean=False): self.pkgconfigs = load_all_yaml() + if (REPO_ROOT / pkgdirname).exists() and clean: + self.reset_dir(pkgdirname) updates = updmgr.check_update(rebuild_package=pkgdirname) if updates and len(updates) == 1: - if clean: - self.reset_dir(pkgdirname) (pkgconfig, ver, buildarchs) = updates[0] march = True if len(buildarchs) >= 2 else False for arch in buildarchs: