summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-07-11 02:53:51 +0000
committerZac Medico <zmedico@gentoo.org>2007-07-11 02:53:51 +0000
commite810a1783056025b791a9c2537c4cb69a7116bf1 (patch)
treefc8525d511628e981536fe578db30de2e0ec3eb2 /pym
parente10354e9dfcf3f8652b964b552cf01b27ffad3ad (diff)
downloadportage-e810a1783056025b791a9c2537c4cb69a7116bf1.tar.gz
portage-e810a1783056025b791a9c2537c4cb69a7116bf1.tar.bz2
portage-e810a1783056025b791a9c2537c4cb69a7116bf1.zip
Fix another case similar to bug #184806 that can occur with --onlydeps.
svn path=/main/trunk/; revision=7226
Diffstat (limited to 'pym')
-rw-r--r--pym/emerge/__init__.py6
1 files changed, 4 insertions, 2 deletions
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