firewall: Support upgrading firewalld to 0.8

Closes #1737.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
James Valleroy 2019-12-23 17:59:33 -05:00 committed by Sunil Mohan Adapa
parent aa2aa56c46
commit c9d9d4736b
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -81,9 +81,9 @@ def force_upgrade(helper, packages):
if 'firewalld' not in packages:
return False
# firewalld 0.4.4.6-2 -> 0.6.x
# 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.7') or \
if Version(package['current_version']) >= Version('0.8') or \
Version(package['new_version']) < Version('0.7'):
return False