mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-26 09:58:31 +01:00
Updated for file pattern
This commit is contained in:
parent
ff2b269209
commit
d246d6beee
1 changed files with 1 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue