diff --git a/slpkg/utilities.py b/slpkg/utilities.py index 48c2299b..b308ed56 100644 --- a/slpkg/utilities.py +++ b/slpkg/utilities.py @@ -48,8 +48,8 @@ class Utilities: def all_installed(self) -> dict: """ Return all installed packages from /val/log/packages folder. """ - # installed_dict: dict = {} var_log_packages: Path = Path(self.configs.log_packages) + try: for file in var_log_packages.glob(self.configs.file_pattern): name = self.split_binary_pkg(file.name)[0] @@ -57,7 +57,6 @@ class Utilities: if not name.startswith('.') and not self.blacklist_pattern(name): yield name, file.name - # return installed_dict except ValueError as err: logger = logging.getLogger(__name__) logger.info('%s: %s: %s', self.__class__.__name__,