From 5b7f847fe6ca20d0ec56973a8401e6987a83cd28 Mon Sep 17 00:00:00 2001 From: Fredrik Eriksson Date: Fri, 31 May 2019 12:39:16 +0200 Subject: [PATCH] revert previous fix because that fix was not a fix... --- sau/freebsd.py | 2 +- sau/gentoo.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sau/freebsd.py b/sau/freebsd.py index f93e0f3..11530cc 100644 --- a/sau/freebsd.py +++ b/sau/freebsd.py @@ -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: diff --git a/sau/gentoo.py b/sau/gentoo.py index 5d84c9e..b1ccaed 100644 --- a/sau/gentoo.py +++ b/sau/gentoo.py @@ -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))