upgrades: Hold tt-rss during dist upgrade, if available

Performs this hold separately from the others, and ignore errors only
for tt-rss.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
James Valleroy authored and Sunil Mohan Adapa committed 2021-01-10 20:44:03 -08:00
1 parent a9914128f3
commit 566a1bd243
2 files changed
+8 -5

No files matched your search

+4 -2
View File
@@ -425,8 +425,10 @@ def _perform_dist_upgrade():
'Holding packages with conffile prompts: ' +
', '.join(packages_with_prompts) + '...', flush=True)
with apt_hold(packages_with_prompts):
print('Running apt full-upgrade...', flush=True)
run_apt_command(['full-upgrade'])
print('Holding tt-rss package if available...', flush=True)
with apt_hold(['tt-rss'], ignore_errors=True):
print('Running apt full-upgrade...', flush=True)
run_apt_command(['full-upgrade'])
# If searx is installed, update search engines list.
if pathlib.Path('/etc/searx/settings.yml').exists():