mirror of
https://github.com/archlinux-jerry/buildbot
synced 2024-11-25 06:20:40 +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')
|
logger.info(f'package: {pkg.dirname} is up to date')
|
||||||
else:
|
else:
|
||||||
has_update = True
|
has_update = True
|
||||||
|
# reset error counter
|
||||||
|
self.__pkgerrs[pkg.dirname] = 0
|
||||||
if has_update:
|
if has_update:
|
||||||
self.__pkgvers[pkg.dirname] = ver
|
self.__pkgvers[pkg.dirname] = ver
|
||||||
self.__pkgerrs[pkg.dirname] = 0
|
|
||||||
updates.append((pkg, ver, buildarchs))
|
updates.append((pkg, ver, buildarchs))
|
||||||
else:
|
else:
|
||||||
logger.warning(f'unknown package type: {pkg.type}')
|
logger.warning(f'unknown package type: {pkg.type}')
|
||||||
|
|
Loading…
Reference in a new issue