mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
setup: Make additional info available for force upgrading
This includes list of packages for which conffile prompts will be shown. For each package current version of the package, new version of the package and list of configuration files that were modified. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
7862325bb6
commit
ec68eb3d89
4 files changed
+56
-32
No files matched your search
+7
-2
@@ -186,8 +186,13 @@ def refresh_package_lists():
|
||||
transaction.refresh_package_lists()
|
||||
|
||||
|
||||
def filter_conffile_prompts(packages):
|
||||
"""Return a filtered list of packages that require conffile prompts."""
|
||||
def filter_conffile_prompt_packages(packages):
|
||||
"""Return a filtered info on packages that require conffile prompts.
|
||||
|
||||
Information for each package includes: current_version, new_version and
|
||||
list of modified_conffiles.
|
||||
|
||||
"""
|
||||
response = actions.superuser_run(
|
||||
'packages',
|
||||
['filter-conffile-packages', '--packages'] + list(packages))
|
||||
|
||||
Reference in new issue
Block a user