firewalld: Force upgrade anything in [0.7, 0.9)

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Joseph Nuthalapati 2020-04-06 22:02:40 +05:30 committed by James Valleroy
parent 7ed64c03fc
commit 435b028d17
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -106,7 +106,7 @@ def force_upgrade(helper, packages):
# firewalld 0.6.x -> 0.7.x, 0.6.x -> 0.8.x, 0.7.x -> 0.8.x
package = packages['firewalld']
if Version(package['current_version']) >= Version('0.8') or \
if Version(package['current_version']) >= Version('0.9') or \
Version(package['new_version']) < Version('0.7'):
return False