mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
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:
parent
863b3cdfe0
commit
d7c70b74d7
@ -402,8 +402,10 @@ def _perform_dist_upgrade():
|
|||||||
|
|
||||||
# Hold packages known to have conffile prompts. FreedomBox service
|
# Hold packages known to have conffile prompts. FreedomBox service
|
||||||
# will handle their upgrade later.
|
# will handle their upgrade later.
|
||||||
print('Holding firewalld and radicale packages...')
|
packages_with_prompts = ['firewalld', 'mumble-server', 'radicale']
|
||||||
with apt_hold(['firewalld', 'radicale']):
|
print('Holding packages with conffile prompts: ' +
|
||||||
|
', '.join(packages_with_prompts) + '...')
|
||||||
|
with apt_hold(packages_with_prompts):
|
||||||
print('Running apt full-upgrade...')
|
print('Running apt full-upgrade...')
|
||||||
run_apt_command(['full-upgrade'])
|
run_apt_command(['full-upgrade'])
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user