mirror of
https://github.com/archlinux-jerry/buildbot
synced 2024-11-22 13:00:40 +08:00
fix rebuild problem
This commit is contained in:
parent
5202ac516a
commit
d59a6cb08e
1 changed files with 2 additions and 2 deletions
|
@ -98,10 +98,10 @@ class jobsManager:
|
||||||
return True
|
return True
|
||||||
def rebuild_package(self, pkgdirname, clean=False):
|
def rebuild_package(self, pkgdirname, clean=False):
|
||||||
self.pkgconfigs = load_all_yaml()
|
self.pkgconfigs = load_all_yaml()
|
||||||
|
if (REPO_ROOT / pkgdirname).exists() and clean:
|
||||||
|
self.reset_dir(pkgdirname)
|
||||||
updates = updmgr.check_update(rebuild_package=pkgdirname)
|
updates = updmgr.check_update(rebuild_package=pkgdirname)
|
||||||
if updates and len(updates) == 1:
|
if updates and len(updates) == 1:
|
||||||
if clean:
|
|
||||||
self.reset_dir(pkgdirname)
|
|
||||||
(pkgconfig, ver, buildarchs) = updates[0]
|
(pkgconfig, ver, buildarchs) = updates[0]
|
||||||
march = True if len(buildarchs) >= 2 else False
|
march = True if len(buildarchs) >= 2 else False
|
||||||
for arch in buildarchs:
|
for arch in buildarchs:
|
||||||
|
|
Loading…
Reference in a new issue