From cbd2fc99a3432ee2b9259158c5d43c5f5705231e Mon Sep 17 00:00:00 2001 From: lxnay Date: Wed, 9 Apr 2008 10:34:17 +0000 Subject: [PATCH] improve rdepends solving and test git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1628 cd1c1023-2f26-0410-ae45-c471fc1f0318 --- libraries/entropy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/entropy.py b/libraries/entropy.py index eaf8fea14..90c513720 100644 --- a/libraries/entropy.py +++ b/libraries/entropy.py @@ -11203,11 +11203,11 @@ class ServerInterface(TextInterface): ldpaths = self.entropyTools.collectLinkerPaths() deps_content = set([x for x in deps_content if os.path.dirname(x) in ldpaths]) idpackages_cache = set() - print "neededs:",neededs for needed in neededs: data_solved = dbconn.resolveNeeded(needed) + data_size = len(data_solved) data_solved = set([x for x in data_solved if x[0] not in idpackages_cache]) - if not data_solved: + if not data_solved or (data_size != len(data_solved)): continue print needed,"belonging to",data_solved found = False