Updated for blacklist

This commit is contained in:
Dimitris Zlatanidis 2023-01-14 21:59:27 +02:00
parent b46cfce492
commit 7d156e7a2a

View file

@ -39,9 +39,13 @@ class Utilities:
def all_installed(self):
""" Return all installed SBo packages from /val/log/packages folder. """
installed = []
pattern = f'*{self.configs.sbo_repo_tag}'
var_log_packages = Path(self.configs.log_packages)
installed = [file.name for file in var_log_packages.glob(pattern)]
for file in var_log_packages.glob(pattern):
if self.split_installed_pkg(file.name) not in self.black.get():
installed.append(file.name)
return installed