Fixed arguments

This commit is contained in:
Dimitris Zlatanidis 2023-01-23 21:26:17 +02:00
parent ae18608e83
commit 0fb7046732
2 changed files with 4 additions and 2 deletions

View file

@ -43,7 +43,8 @@ class Check(Configs, Utilities):
found, not_found = [], []
for sbo in slackbuilds:
package = self.is_installed(sbo)
pattern = f'*{self.sbo_repo_tag}'
package = self.is_installed(sbo, pattern)
if package:
pkg = self.split_installed_pkg(package)[0]
found.append(pkg)

View file

@ -91,7 +91,8 @@ class Utilities:
def is_repo_version_bigger(self, package: str) -> bool:
""" Compare two versions. """
installed = self.is_installed(package)
pattern = f'*{self.configs.sbo_repo_tag}'
installed = self.is_installed(package, pattern)
if installed:
installed_version = self.split_installed_pkg(installed)[1]
repository_version = SBoQueries(package).version()