mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-29 20:34:22 +01:00
Switch to method
This commit is contained in:
parent
d29d82b87f
commit
43f3296254
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue