From 3abb8d9e14913c58c5cb0ac032a6789216d60d57 Mon Sep 17 00:00:00 2001 From: Jerry Date: Wed, 10 Apr 2019 21:07:08 +0800 Subject: [PATCH] fix a bug --- buildbot.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/buildbot.py b/buildbot.py index 7663547..913bfb9 100755 --- a/buildbot.py +++ b/buildbot.py @@ -131,15 +131,15 @@ class jobsManager: def __get_job(self): if self.__curr_job: 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() jobs = self.__buildjobs if jobs: self.__curr_job = jobs.pop(0) return self.__curr_job - def __finish_job(self, pkgdir): - assert pkgdir == self.__curr_job.pkgconfig.dirname - # do upload + def __finish_job(self, pkgdir, force=False): + if not force: + assert pkgdir == self.__curr_job.pkgconfig.dirname self.__curr_job = None return True def __makepkg(self, job):