Commit ceca2eb1 authored by Alan's avatar Alan

ASP: respect 80 characters line length

Will-fix: #15983
parent b8fc5e0d
......@@ -480,15 +480,17 @@ def apt_hook_post():
os.remove(ASP_STATE_PACKAGES)
additional_packages_names = {
filter_package_details(pkg) for pkg in get_additional_packages(search_new_persistence=True)
filter_package_details(pkg) for pkg in
get_additional_packages(search_new_persistence=True)
}
apt_cache = apt.cache.Cache()
# Filter automatically installed packages and packages already configured
# as additional software
new_manually_installed_packages = {
pkg for pkg in packages["installed"] if not apt_cache[pkg].is_auto_installed and
pkg not in additional_packages_names
pkg for pkg in packages["installed"] if (
not apt_cache[pkg].is_auto_installed and
pkg not in additional_packages_names)
}
if new_manually_installed_packages:
......@@ -500,6 +502,7 @@ def apt_hook_post():
if additional_packages_removed:
handle_removed_packages(additional_packages_removed)
def install_additional_packages(upgrade_mode=False):
"""Subcommand which activates and installs all additional packages.
......
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