mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
setup: Clarify success log message when force upgrading
Currently, in cases of ignoring an upgrade and actually upgrading, the log message says success which is somewhat confusing. Make the force_upgrade() methods in apps return information about ignoring the upgrade and print log message accordingly. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
ecc28a72bd
commit
acdcabcbed
4 files changed
+12
-6
No files matched your search
@@ -79,16 +79,17 @@ def setup(helper, old_version=None):
|
||||
def force_upgrade(helper, packages):
|
||||
"""Force upgrade firewalld to resolve conffile prompts."""
|
||||
if 'firewalld' not in packages:
|
||||
return
|
||||
return False
|
||||
|
||||
# firewalld 0.4.4.6-2 -> 0.6.x
|
||||
package = packages['firewalld']
|
||||
if Version(package['current_version']) >= Version('0.6') or \
|
||||
Version(package['new_version']) < Version('0.6'):
|
||||
return
|
||||
return False
|
||||
|
||||
helper.install(['firewalld'], force_configuration='new')
|
||||
_run(['setup'], superuser=True)
|
||||
return True
|
||||
|
||||
|
||||
def get_enabled_status():
|
||||
|
||||
Reference in new issue
Block a user