From: Zac Medico Date: Wed, 11 Jul 2007 02:53:51 +0000 (-0000) Subject: Fix another case similar to bug #184806 that can occur with --onlydeps. X-Git-Tag: v2.2_pre1~1043 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e810a1783056025b791a9c2537c4cb69a7116bf1;p=portage.git Fix another case similar to bug #184806 that can occur with --onlydeps. svn path=/main/trunk/; revision=7226 --- diff --git a/pym/emerge/__init__.py b/pym/emerge/__init__.py index 0e96e5032..f93e93adc 100644 --- a/pym/emerge/__init__.py +++ b/pym/emerge/__init__.py @@ -2777,8 +2777,10 @@ class depgraph(object): pkg_status = x[3] pkg_merge = ordered and pkg_status != "nomerge" binary_package = pkg_type != "ebuild" - if pkg_node in self._slot_collision_nodes: - # The metadata isn't cached due to the slot collision. + if pkg_node in self._slot_collision_nodes or \ + (pkg_status == "nomerge" and pkg_type != "installed"): + # The metadata isn't cached due to a slot collision or + # --onlydeps. mydbapi = self.trees[myroot][self.pkg_tree_map[pkg_type]].dbapi else: mydbapi = self.mydbapi[myroot] # contains cached metadata