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:
Sunil Mohan Adapa authored and James Valleroy committed 2019-02-28 20:48:51 -05:00
1 parent 7862325bb6
commit ec68eb3d89
4 files changed
+56 -32

No files matched your search

+7 -2
View File
@@ -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))