From 9451a8e79eb223c0e891fcc9e3f2d592618aef18 Mon Sep 17 00:00:00 2001 From: Jerry Date: Tue, 1 Oct 2019 17:10:00 +0800 Subject: [PATCH] fix error counter --- buildbot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/buildbot.py b/buildbot.py index 98e4940..ce2c008 100755 --- a/buildbot.py +++ b/buildbot.py @@ -494,9 +494,10 @@ class updateManager: logger.info(f'package: {pkg.dirname} is up to date') else: has_update = True + # reset error counter + self.__pkgerrs[pkg.dirname] = 0 if has_update: self.__pkgvers[pkg.dirname] = ver - self.__pkgerrs[pkg.dirname] = 0 updates.append((pkg, ver, buildarchs)) else: logger.warning(f'unknown package type: {pkg.type}')