From 61bbd523f411cc289756827cdf7cf1937c4c378d Mon Sep 17 00:00:00 2001 From: Jerry Date: Thu, 5 Sep 2019 23:36:42 +0800 Subject: [PATCH] buildbot: fix a bug --- buildbot.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/buildbot.py b/buildbot.py index 840fbbf..dbb7139 100755 --- a/buildbot.py +++ b/buildbot.py @@ -381,6 +381,9 @@ class updateManager: continue pkgdir = REPO_ROOT / pkg.dirname logger.info(f'checking update: {pkg.dirname}') + if self.__pkgerrs.get(pkg.dirname, 0) >= 2: + logger.warning(f'package: {pkg.dirname} too many failures checking update') + continue pkgbuild = pkgdir / 'PKGBUILD' archs = get_arch_from_pkgbuild(pkgbuild) buildarchs = [BUILD_ARCH_MAPPING.get(arch, None) for arch in archs] @@ -401,10 +404,6 @@ class updateManager: if pkg.type in ('git', 'manual'): ver = self.__get_new_ver(pkg.dirname, arch) oldver = self.__pkgvers.get(pkg.dirname, None) - errs = self.__pkgerrs.get(pkg.dirname, 0) - if errs >= 2: - logger.warning(f'package: {pkg.dirname} too many failures checking update') - continue has_update = False if rebuild_package: has_update = True