wrong config

This commit is contained in:
JerryXiao 2019-04-09 15:59:34 +08:00
parent ec0d33b2a4
commit 195abe322e
Signed by: Jerry
GPG key ID: 9D9CE43650FF2BAA
2 changed files with 7 additions and 2 deletions

View file

@ -55,6 +55,7 @@ class jobsManager:
self.__curr_job = None
self.pkgconfigs = load_all_yaml()
self.last_updatecheck = 0.0
self.idle = False
def _new_buildjob(self, job):
assert type(job) is Job
job_to_remove = list()
@ -124,9 +125,13 @@ class jobsManager:
if not self.__buildjobs:
# This part check for updates
if time() - self.last_updatecheck <= UPDATE_INTERVAL:
if not self.idle:
logger.info('Buildbot is idling for package updates.')
self.idle = True
sleep(60)
return
self.last_updatecheck = time()
self.idle = False
updates = updmgr.check_update()
for update in updates:
(pkgconfig, ver, buildarchs) = update

View file

@ -33,8 +33,8 @@ GPG_VERIFY_CMD = 'gpg --verify'
# Archlinux-Jerry Build Bot <buildbot@mail.jerryxiao.cc>
GPG_KEY = 'BEE4F1D5A661CA1FEA65C38093962CE07A0D5B7D'
GPG_SIGN_CMD = (f'gpg --default-key {GPG_KEY} --no-armor'
'--pinentry-mode loopback --passphrase \'\''
GPG_SIGN_CMD = (f'gpg --default-key {GPG_KEY} --no-armor '
'--pinentry-mode loopback --passphrase \'\' '
'--detach-sign --yes --')
#### config for buildbot.py