mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-31 10:26:39 +01:00
Fixed for installed
This commit is contained in:
parent
ecbebd2622
commit
8f4a9802ed
1 changed files with 5 additions and 3 deletions
|
@ -36,9 +36,11 @@ class Utilities:
|
|||
|
||||
def is_package_installed(self, name: str) -> str:
|
||||
""" Returns the installed package name. """
|
||||
for package_name in self.installed_package_names:
|
||||
if package_name == name:
|
||||
return name
|
||||
for package in self.installed_packages:
|
||||
pkg_name: str = self.split_binary_pkg(package)[0]
|
||||
|
||||
if pkg_name == name:
|
||||
return package
|
||||
|
||||
return ''
|
||||
|
||||
|
|
Loading…
Reference in a new issue