Fixed for main packages

This commit is contained in:
Dimitris Zlatanidis 2023-01-14 20:44:46 +02:00
parent 36f72e1bd6
commit eb7d141ac5

View file

@ -88,9 +88,6 @@ class Slackbuilds:
self.utils.is_installed(dep)):
continue
if dep in self.slackbuilds:
self.slackbuilds.remove(dep)
self.dependencies.append(dep)
# Remove duplicate packages and keeps the order.
@ -99,6 +96,11 @@ class Slackbuilds:
if dependencies:
self.dependencies = self.choose_dependencies(dependencies)
# Clean up the main packages if they were selected for dependencies
for dep in self.dependencies:
if dep in self.slackbuilds:
self.slackbuilds.remove(dep)
self.install_order.extend(self.dependencies)
def choose_dependencies(self, dependencies: list):