_emerge.depgraph: If "/" not in trees, treat target_root as running_root (needed...
authorSebastian Luther <SebastianLuther@gmx.de>
Thu, 5 Aug 2010 13:45:22 +0000 (15:45 +0200)
committerZac Medico <zmedico@gentoo.org>
Thu, 5 Aug 2010 20:37:33 +0000 (13:37 -0700)
pym/_emerge/depgraph.py

index aeaee0fcb6c37e70e5d22362fca8f81a2e06c1f1..15004821591946b68aaf9822c5215b0b468ca32b 100644 (file)
@@ -66,7 +66,10 @@ class _frozen_depgraph_config(object):
                if settings.get("PORTAGE_DEBUG", "") == "1":
                        self.edebug = 1
                self.spinner = spinner
-               self._running_root = trees["/"]["root_config"]
+               if "/" in trees:
+                       self._running_root = trees["/"]["root_config"]
+               else:
+                       self._running_root = trees[self.target_root]["root_config"]
                self._opts_no_restart = frozenset(["--buildpkgonly",
                        "--fetchonly", "--fetch-all-uri", "--pretend"])
                self.pkgsettings = {}