Migrating to Python v3
- support for Python v3.8.x
- support for Python v3.5.x
- new tag, 2019.2.8
- updates class generation and iterators
- unittests updated with coverage >75%
- new coverage routines
- unittests profiling
- full fake data for unittests
- unittest testrun is ~1.5 seconds long
Bugfixes
- 34834, proper use of 'sudo' option
- multiple proper iterator use
- 37919, show warning when installed and candidate versions
are newer comparing to release version
Change-Id: Idd6b889f7ce94ae0c832e2f0a0346e4fdc3264a3
Related-PROD: PROD-34834 PROD-34664 PROD-34919
diff --git a/cfg_checker/modules/packages/versions.py b/cfg_checker/modules/packages/versions.py
index 7fae9fc..542c0e4 100644
--- a/cfg_checker/modules/packages/versions.py
+++ b/cfg_checker/modules/packages/versions.py
@@ -351,8 +351,8 @@
self.target = r
elif i > r:
# both are newer, same target
- self.status = const.VERSION_UP
- self.action = const.ACT_NA
+ self.status = const.VERSION_WARN
+ self.action = const.ACT_REPO
elif i == r:
# all is ok
self.status = const.VERSION_OK
@@ -372,10 +372,3 @@
# and we need to update per-part status
self.source.update_parts(self.target, self.status)
-
- @staticmethod
- def deb_lower(_s, _t):
- if _t.debian and _t.debian > _s.debian:
- return True
- else:
- return False