From a742e6b21de7f20c6423031966ca31c7d7912861 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Fri, 24 Apr 2015 23:24:52 +0300 Subject: [PATCH] fix clear master packages --- slpkg/sbo/slackbuild.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/slpkg/sbo/slackbuild.py b/slpkg/sbo/slackbuild.py index acb2403d..da3905cc 100644 --- a/slpkg/sbo/slackbuild.py +++ b/slpkg/sbo/slackbuild.py @@ -167,10 +167,10 @@ class SBoInstall(object): Clear master slackbuilds if already exist in dependencies or if added to install two or more times ''' - for mas, ver in zip(Utils().remove_dbs(self.master_packages), - self.pkg_ver): - if mas not in self.dependencies: - self.master_packages.append(mas) + self.master_packages = Utils().remove_dbs(self.master_packages) + for mas, ver in zip(self.master_packages, self.pkg_ver): + if mas in self.dependencies: + self.master_packages.remove(mas) self.pkg_ver.append(ver) def matching(self):