Updated for pattern

This commit is contained in:
Dimitris Zlatanidis 2023-01-23 22:21:29 +02:00
parent 6032c63236
commit 8be6761d1b

View file

@ -81,12 +81,14 @@ class Slackbuilds(Configs):
def creating_dependencies_for_build(self):
""" List with the dependencies. """
pattern = f'*{self.sbo_repo_tag}'
for deps in self.sbos.values():
for dep in deps:
# Checks if the package was installed and skipped.
if (self.flag_skip_installed in self.flags and
self.utils.is_installed(dep, pattern=f'*{self.sbo_repo_tag}')):
self.utils.is_installed(dep, pattern)):
continue
self.dependencies.append(dep)