Fixed for installed

This commit is contained in:
Dimitris Zlatanidis 2023-03-26 11:20:58 +03:00
parent ecbebd2622
commit 8f4a9802ed

View file

@ -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 ''