From b878b7e1b3dbe916523d9ba14906a52f303554f8 Mon Sep 17 00:00:00 2001 From: Valery Sinelnikov Date: Thu, 27 Jun 2024 12:13:08 +0400 Subject: [PATCH] Changed the method for getting the list of packages for pkcon_runner --- gpoa/pkcon_runner | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/gpoa/pkcon_runner b/gpoa/pkcon_runner index 8d955c9..86cb690 100755 --- a/gpoa/pkcon_runner +++ b/gpoa/pkcon_runner @@ -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')