mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-16 03:41:11 +01:00
Remove unused
This commit is contained in:
parent
6332169cc5
commit
9487398738
1 changed files with 1 additions and 2 deletions
|
@ -48,8 +48,8 @@ class Utilities:
|
||||||
|
|
||||||
def all_installed(self) -> dict:
|
def all_installed(self) -> dict:
|
||||||
""" Return all installed packages from /val/log/packages folder. """
|
""" Return all installed packages from /val/log/packages folder. """
|
||||||
# installed_dict: dict = {}
|
|
||||||
var_log_packages: Path = Path(self.configs.log_packages)
|
var_log_packages: Path = Path(self.configs.log_packages)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
for file in var_log_packages.glob(self.configs.file_pattern):
|
for file in var_log_packages.glob(self.configs.file_pattern):
|
||||||
name = self.split_binary_pkg(file.name)[0]
|
name = self.split_binary_pkg(file.name)[0]
|
||||||
|
@ -57,7 +57,6 @@ class Utilities:
|
||||||
if not name.startswith('.') and not self.blacklist_pattern(name):
|
if not name.startswith('.') and not self.blacklist_pattern(name):
|
||||||
yield name, file.name
|
yield name, file.name
|
||||||
|
|
||||||
# return installed_dict
|
|
||||||
except ValueError as err:
|
except ValueError as err:
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
logger.info('%s: %s: %s', self.__class__.__name__,
|
logger.info('%s: %s: %s', self.__class__.__name__,
|
||||||
|
|
Loading…
Reference in a new issue