Commit 63397628 authored by Alan's avatar Alan
Browse files

ASP: fix package details filtering

Will-fix: #15822
parent e22ec9e7
......@@ -22,7 +22,8 @@ from tailslib.persistence import ( # NOQA: E402
from tailslib.additionalsoftware.config import ( # NOQA: E402
get_additional_packages,
get_packages_list_path)
get_packages_list_path,
filter_package_details)
_ = gettext.gettext
......@@ -237,14 +238,14 @@ class ASPConfigApplication(Gtk.Application):
def get_asp_configuration(self):
additional_packages = get_additional_packages(
search_new_persistence=True,
filter_version=True)
search_new_persistence=True)
apt_cache = apt.cache.Cache()
packages_with_description = []
for package in sorted(additional_packages):
package_name = filter_package_details(pkg)
try:
apt_package = apt_cache[package]
apt_package = apt_cache[package_name]
except KeyError:
summary = _("[package not available]")
else:
......
......@@ -462,7 +462,7 @@ def apt_hook_post():
os.remove(ASP_STATE_PACKAGES)
additional_packages = get_additional_packages(search_new_persistence=True,
filter_version=True)
filter_details=True)
apt_cache = apt.cache.Cache()
# Filter automatically installed packages and packages already configured
......
pythonlib @ 88ef9933
Subproject commit fec9ea7a03fd7a2d64238108075c124cbd272d98
Subproject commit 88ef9933ff13cd301f041a9ea22ae323747c2ee3
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment