mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
Fixed for main packages
This commit is contained in:
parent
36f72e1bd6
commit
eb7d141ac5
1 changed files with 5 additions and 3 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue