Updated for split

This commit is contained in:
Dimitris Zlatanidis 2023-05-11 12:46:18 +03:00
parent 7cb3de4313
commit db60825ac2

View file

@ -44,7 +44,7 @@ class Utilities(Configs):
def all_installed(self) -> dict:
""" Return all installed packages from /val/log/packages folder. """
for file in self.log_packages.glob(self.file_pattern):
name: str = self.split_package(file.name)[0]
name: str = self.split_package(file.name)['name']
if not name.startswith('.') and not self.blacklist_pattern(name):
yield name, file.name