diff --git a/slpkg/utilities.py b/slpkg/utilities.py index 63289ab2..7d76c29d 100644 --- a/slpkg/utilities.py +++ b/slpkg/utilities.py @@ -3,7 +3,6 @@ import os import re -import glob import time import shutil import fnmatch @@ -30,11 +29,9 @@ class Utilities(Configs): self.stdout = None self.prog_version = Version() - # self.installed_packages: dict = dict(self.all_installed()) - def is_package_installed(self, name: str) -> str: """ Returns the installed package binary. """ - installed_package: Generator = Path(self.log_packages).glob(f'{name}*') + installed_package: Generator = Path(self.log_packages).glob(f'{name}{self.file_pattern}') for installed in installed_package: inst_name: str = self.split_package(installed.name)['name'] if inst_name == name: