From 6c6b9571fc543342d10b6b37063d961d09db39ab Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Sat, 22 Apr 2023 12:11:35 +0300 Subject: [PATCH] Fixed for doubles --- ChangeLog.txt | 2 ++ slpkg/binaries/install.py | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog.txt b/ChangeLog.txt index 8d9221d3..3de2077a 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,6 +1,8 @@ 4.8.1 - 21/04/2023 Updated: - For error messages +Fixed: +- Double packages as main and as dependency for binaries repos 4.8.0 - 19/04/2023 Fixed: diff --git a/slpkg/binaries/install.py b/slpkg/binaries/install.py index be1f2e1c..e327bbcf 100644 --- a/slpkg/binaries/install.py +++ b/slpkg/binaries/install.py @@ -102,6 +102,11 @@ class Packages(Configs): if requires: self.packages_requires = self.choose_dependencies(requires) + # Clean up the main packages if they were selected for dependencies. + for dep in self.packages_requires: + if dep in self.packages: + self.packages.remove(dep) + self.install_order = [*self.packages_requires, *self.packages] def download(self) -> None: