upgrades: Hold mumble-server during dist upgrade

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
[sunil: Minor refactor to reuse list of packages with prompts]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
James Valleroy 2020-12-02 19:45:08 -05:00 committed by Sunil Mohan Adapa
parent 863b3cdfe0
commit d7c70b74d7
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -402,8 +402,10 @@ def _perform_dist_upgrade():
# Hold packages known to have conffile prompts. FreedomBox service
# will handle their upgrade later.
print('Holding firewalld and radicale packages...')
with apt_hold(['firewalld', 'radicale']):
packages_with_prompts = ['firewalld', 'mumble-server', 'radicale']
print('Holding packages with conffile prompts: ' +
', '.join(packages_with_prompts) + '...')
with apt_hold(packages_with_prompts):
print('Running apt full-upgrade...')
run_apt_command(['full-upgrade'])