fix error counter

This commit is contained in:
JerryXiao 2019-10-01 17:10:00 +08:00
parent a4a7aece24
commit 9451a8e79e

View file

@ -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}')