From d6550d32de30c01eac956c36951090bef4ec8fd8 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 2 Dec 2008 23:39:22 +0000 Subject: [PATCH] =?utf8?q?Fix=20depgraph.=5Fdep=5Fcheck=5Fcomposite=5Fdb.?= =?utf8?q?=5Fvisible()=20to=20reject=20installed=20packages=20that=20are?= =?utf8?q?=20masked.=20This=20is=20necessary=20for=20correct=20choices=20i?= =?utf8?q?n=20||=20deps=20when=20we=20want=20to=20ensure=20that=20installe?= =?utf8?q?d=20masked=20packages=20are=20not=20preferred=20over=20other=20a?= =?utf8?q?vailable=20choices=20that=20are=20not=20masked.=20Thanks=20to=20?= =?utf8?q?Jan=20Kundr=C3=A1t=20=20for=20reporting=20this=20issue?= =?utf8?q?=20and=20testing=20the=20patch.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit svn path=/main/trunk/; revision=12138 --- pym/_emerge/__init__.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 194e11600..9147aa930 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -8217,13 +8217,13 @@ class depgraph(object): arg = None if arg: return False - if pkg.installed: - try: - if not visible( - self._depgraph.pkgsettings[pkg.root], pkg): - return False - except portage.exception.InvalidDependString: - pass + if pkg.installed: + try: + if not visible( + self._depgraph.pkgsettings[pkg.root], pkg): + return False + except portage.exception.InvalidDependString: + pass return True def _dep_expand(self, atom): -- 2.26.2