mirror of
https://github.com/archlinux-jerry/buildbot
synced 2024-11-25 06:20:40 +08:00
small improvements
This commit is contained in:
parent
551ea4c1be
commit
53165071c7
1 changed files with 40 additions and 36 deletions
|
@ -252,6 +252,7 @@ class jobsManager:
|
|||
self._new_buildjob(newjob)
|
||||
else:
|
||||
# This part does the job
|
||||
self.idle = False
|
||||
job = self.__get_job()
|
||||
if not job:
|
||||
logging.error('No job got')
|
||||
|
@ -316,6 +317,7 @@ class updateManager:
|
|||
def check_update(self, rebuild_package=None):
|
||||
updates = list()
|
||||
for pkg in jobsmgr.pkgconfigs:
|
||||
try:
|
||||
if rebuild_package and \
|
||||
rebuild_package != pkg.dirname:
|
||||
continue
|
||||
|
@ -354,6 +356,8 @@ class updateManager:
|
|||
updates.append((pkg, ver, buildarchs))
|
||||
else:
|
||||
logger.warning(f'unknown package type: {pkg.type}')
|
||||
except Exception:
|
||||
print_exc_plus()
|
||||
self._save()
|
||||
return updates
|
||||
|
||||
|
|
Loading…
Reference in a new issue