From 7d156e7a2a2618f10eee1e4c60e90554b290abfb Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Sat, 14 Jan 2023 21:59:27 +0200 Subject: [PATCH] Updated for blacklist --- slpkg/utilities.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/slpkg/utilities.py b/slpkg/utilities.py index a4f5173f..b2412631 100644 --- a/slpkg/utilities.py +++ b/slpkg/utilities.py @@ -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