mirror of
https://github.com/altlinux/gpupdate.git
synced 2025-01-10 13:17:58 +03:00
Changed the method for getting the list of packages for pkcon_runner
This commit is contained in:
parent
c57d1bac9e
commit
b878b7e1b3
@ -57,16 +57,16 @@ class Pkcon_applier:
|
|||||||
self.storage.filling_storage_from_dconf()
|
self.storage.filling_storage_from_dconf()
|
||||||
install_branch = '{}/{}'.format(self.__hklm_branch, self.__install_key_name)
|
install_branch = '{}/{}'.format(self.__hklm_branch, self.__install_key_name)
|
||||||
remove_branch = '{}/{}'.format(self.__hklm_branch, self.__remove_key_name)
|
remove_branch = '{}/{}'.format(self.__hklm_branch, self.__remove_key_name)
|
||||||
self.install_packages_setting = self.storage.filter_hklm_entries(install_branch)
|
self.install_packages_setting = self.storage.get_key_value(install_branch)
|
||||||
self.remove_packages_setting = self.storage.filter_hklm_entries(remove_branch)
|
self.remove_packages_setting = self.storage.get_key_value(remove_branch)
|
||||||
for package in self.install_packages_setting:
|
for package in self.install_packages_setting:
|
||||||
if not is_rpm_installed(package.data):
|
if not is_rpm_installed(package):
|
||||||
self.install_packages.add(package.data)
|
self.install_packages.add(package)
|
||||||
for package in self.remove_packages_setting:
|
for package in self.remove_packages_setting:
|
||||||
if package.data in self.install_packages:
|
if package in self.install_packages:
|
||||||
self.install_packages.remove(package.data)
|
self.install_packages.remove(package)
|
||||||
if is_rpm_installed(package.data):
|
if is_rpm_installed(package):
|
||||||
self.remove_packages.add(package.data)
|
self.remove_packages.add(package)
|
||||||
|
|
||||||
def apply(self):
|
def apply(self):
|
||||||
log('D142')
|
log('D142')
|
||||||
|
Loading…
Reference in New Issue
Block a user