Switch to method

This commit is contained in:
Dimitris Zlatanidis 2022-12-17 18:47:49 +02:00
parent d29d82b87f
commit 43f3296254

View file

@ -19,7 +19,7 @@ class Utilities:
def is_installed(self, name: str):
""" Returns the installed package name. """
for package in os.listdir(self.configs.log_packages):
pkg = '-'.join(package.split('-')[:-3])
pkg = self.split_installed_pkg(package)[0]
if pkg == name and self.configs.sbo_repo_tag in package and pkg not in self.black.get():
return package