From: Zac Medico Date: Wed, 11 Jul 2007 02:54:32 +0000 (-0000) Subject: Fix another case similar to bug #184806 that can occur with --onlydeps. (trunk r7226) X-Git-Tag: v2.1.3~64 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6c922fe58c2c04dd6febf66a1ef7b8f53d7ef2b1;p=portage.git Fix another case similar to bug #184806 that can occur with --onlydeps. (trunk r7226) svn path=/main/branches/2.1.2/; revision=7227 --- diff --git a/bin/emerge b/bin/emerge index e52ef1323..78da49f34 100755 --- a/bin/emerge +++ b/bin/emerge @@ -2756,8 +2756,10 @@ class depgraph: 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