From d246d6beee18b07bd525a4781a57360dcdf0def2 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Fri, 15 Mar 2024 18:26:51 +0200 Subject: [PATCH] Updated for file pattern --- slpkg/utilities.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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: