Fixed dependencies order

This commit is contained in:
Dimitris Zlatanidis 2022-12-17 20:07:08 +02:00
parent acd682ed21
commit 52bac3057d

View file

@ -71,13 +71,12 @@ class Slackbuilds:
""" List with the dependencies. """
for deps in self.sbos.values():
for dep in deps:
# Checks if the package was installed and skipped.
if ('--skip-installed' in self.flags and
self.utils.is_installed(dep)):
continue
if dep not in self.sbos.values():
if dep not in self.sbos.values() and dep not in self.sbos.keys():
self.dependencies.append(dep)
# Remove duplicate packages and keeps the order.