port_stats: BUG: stop confusing YELLOW and SLATE

This commit is contained in:
Ivan A. Melnikov 2018-07-04 15:51:38 +04:00
parent 972370e9df
commit 1eb2d798a6

View File

@ -32,7 +32,7 @@ def _colorize(base_package, new_package):
return 'ORANGE'
c = rpm_ffi.evr_cmp(base_package.evr, new_package.evr, 'pkg')
if c < 0: # base package is newer
if c > 0: # base package is newer
return 'YELLOW'
return 'SLATE'