diff --git a/buildbot.py b/buildbot.py index f74d34e..1929f5e 100755 --- a/buildbot.py +++ b/buildbot.py @@ -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 diff --git a/config.py b/config.py index b155181..1908846 100644 --- a/config.py +++ b/config.py @@ -33,8 +33,8 @@ GPG_VERIFY_CMD = 'gpg --verify' # Archlinux-Jerry Build Bot 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