diff --git a/slpkg/utilities.py b/slpkg/utilities.py index d41eabb1..a372a53b 100644 --- a/slpkg/utilities.py +++ b/slpkg/utilities.py @@ -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 ''