1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-01-09 21:17:52 +03:00

Changed the method for getting the list of packages for pkcon_runner

This commit is contained in:
Valery Sinelnikov 2024-06-27 12:13:08 +04:00
parent c57d1bac9e
commit b878b7e1b3

View File

@ -57,16 +57,16 @@ class Pkcon_applier:
self.storage.filling_storage_from_dconf()
install_branch = '{}/{}'.format(self.__hklm_branch, self.__install_key_name)
remove_branch = '{}/{}'.format(self.__hklm_branch, self.__remove_key_name)
self.install_packages_setting = self.storage.filter_hklm_entries(install_branch)
self.remove_packages_setting = self.storage.filter_hklm_entries(remove_branch)
self.install_packages_setting = self.storage.get_key_value(install_branch)
self.remove_packages_setting = self.storage.get_key_value(remove_branch)
for package in self.install_packages_setting:
if not is_rpm_installed(package.data):
self.install_packages.add(package.data)
if not is_rpm_installed(package):
self.install_packages.add(package)
for package in self.remove_packages_setting:
if package.data in self.install_packages:
self.install_packages.remove(package.data)
if is_rpm_installed(package.data):
self.remove_packages.add(package.data)
if package in self.install_packages:
self.install_packages.remove(package)
if is_rpm_installed(package):
self.remove_packages.add(package)
def apply(self):
log('D142')