mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-02-07 08:46:21 +01:00
Updated for blacklist
This commit is contained in:
parent
b46cfce492
commit
7d156e7a2a
1 changed files with 5 additions and 1 deletions
|
@ -39,9 +39,13 @@ class Utilities:
|
||||||
|
|
||||||
def all_installed(self):
|
def all_installed(self):
|
||||||
""" Return all installed SBo packages from /val/log/packages folder. """
|
""" Return all installed SBo packages from /val/log/packages folder. """
|
||||||
|
installed = []
|
||||||
pattern = f'*{self.configs.sbo_repo_tag}'
|
pattern = f'*{self.configs.sbo_repo_tag}'
|
||||||
var_log_packages = Path(self.configs.log_packages)
|
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
|
return installed
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue