mirror of
https://github.com/archlinux-jerry/buildbot
synced 2024-11-22 21:10:41 +08:00
fix a bug
This commit is contained in:
parent
f64b42e11b
commit
3abb8d9e14
1 changed files with 4 additions and 4 deletions
|
@ -131,15 +131,15 @@ class jobsManager:
|
||||||
def __get_job(self):
|
def __get_job(self):
|
||||||
if self.__curr_job:
|
if self.__curr_job:
|
||||||
logger.error(f'Job {self.__curr_job} failed')
|
logger.error(f'Job {self.__curr_job} failed')
|
||||||
self.__finish_job(self.__curr_job)
|
self.__finish_job(self.__curr_job, force=True)
|
||||||
return self.__get_job()
|
return self.__get_job()
|
||||||
jobs = self.__buildjobs
|
jobs = self.__buildjobs
|
||||||
if jobs:
|
if jobs:
|
||||||
self.__curr_job = jobs.pop(0)
|
self.__curr_job = jobs.pop(0)
|
||||||
return self.__curr_job
|
return self.__curr_job
|
||||||
def __finish_job(self, pkgdir):
|
def __finish_job(self, pkgdir, force=False):
|
||||||
|
if not force:
|
||||||
assert pkgdir == self.__curr_job.pkgconfig.dirname
|
assert pkgdir == self.__curr_job.pkgconfig.dirname
|
||||||
# do upload
|
|
||||||
self.__curr_job = None
|
self.__curr_job = None
|
||||||
return True
|
return True
|
||||||
def __makepkg(self, job):
|
def __makepkg(self, job):
|
||||||
|
|
Loading…
Reference in a new issue