mirror of
https://github.com/archlinux-jerry/buildbot
synced 2024-11-24 22:10:41 +08:00
fix error counter
This commit is contained in:
parent
a4a7aece24
commit
9451a8e79e
1 changed files with 2 additions and 1 deletions
|
@ -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}')
|
||||
|
|
Loading…
Reference in a new issue