Tweak $ROOT handling inside depgraph._add_pkg_deps() for removal actions,
authorZac Medico <zmedico@gentoo.org>
Mon, 10 Aug 2009 02:38:02 +0000 (02:38 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 10 Aug 2009 02:38:02 +0000 (02:38 -0000)
so --with-bdeps works correctly with --depclean and --prune.

svn path=/main/trunk/; revision=13969

pym/_emerge/depgraph.py

index 50923bf3d8ec0ca418f6ae52ab9a409bbe35d145..a8ed267e7846a573db3526a70d905eb4bc11f72a 100644 (file)
@@ -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: