summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-08-10 02:38:02 +0000
committerZac Medico <zmedico@gentoo.org>2009-08-10 02:38:02 +0000
commitbcaeb5febbe0d242ca2a51db237ac11630eb74f2 (patch)
tree9675a01d62c174dfdf0d0e64601e015a6b178292
parentd4bd70aed22dfdc3551a6cce51f7230af15bdebc (diff)
downloadportage-bcaeb5febbe0d242ca2a51db237ac11630eb74f2.tar.gz
portage-bcaeb5febbe0d242ca2a51db237ac11630eb74f2.tar.bz2
portage-bcaeb5febbe0d242ca2a51db237ac11630eb74f2.zip
Tweak $ROOT handling inside depgraph._add_pkg_deps() for removal actions,
so --with-bdeps works correctly with --depclean and --prune. svn path=/main/trunk/; revision=13969
-rw-r--r--pym/_emerge/depgraph.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py
index 50923bf3d..a8ed267e7 100644
--- a/pym/_emerge/depgraph.py
+++ b/pym/_emerge/depgraph.py
@@ -1015,6 +1015,8 @@ class depgraph(object):
edepend["DEPEND"] = ""
bdeps_root = "/"
+ if removal_action:
+ bdeps_root = myroot
root_deps = self._frozen_config.myopts.get("--root-deps")
if root_deps is not None:
if root_deps is True: