revert previous fix because that fix was not a fix...

This commit is contained in:
Fredrik Eriksson 2019-05-31 12:39:16 +02:00
parent 945594b8ab
commit 5b7f847fe6
No known key found for this signature in database
GPG Key ID: 8825C73A0FD1502A
2 changed files with 2 additions and 2 deletions

View File

@ -112,7 +112,7 @@ def pkg_upgrade():
pkg['upgrade_level'] = sau.helpers.version_diff(pkg['version_new'], pkg['version_old'])
log.info('pkg upgrade available {}'.format(pkg))
sens = conf.getint('packages', pkg['pkg'], fallback=default_version_sens)
if sens >= pkg['upgrade_level']:
if sens <= pkg['upgrade_level']:
log.debug('configured level {} <= pkg level {}'.format(sens, pkg['upgrade_level']))
pkg['upgrade'] = True
else:

View File

@ -146,7 +146,7 @@ def pkg_upgrade():
sens = conf.getint('packages', name, fallback=default_version_sens)
common = sau.helpers.version_diff(version, old)
if sens >= common:
if sens <= common:
log.info('{}-{} -> {} configured level {} <= pkg level {}'.format(name, old, version, sens, common))
else:
log.warning('{}-{} -> {} configured level {} > pkg level {}'.format(name, old, version, sens, common))