diff options
author | Sebastian Luther <SebastianLuther@gmx.de> | 2010-08-05 15:45:22 +0200 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-08-05 13:37:33 -0700 |
commit | d1779db3525d9c1783e67c2f31a884dae35a60a6 (patch) | |
tree | 63f9a0e109dd7ed75dfc4ec07ca4b80293e66e9f | |
parent | 9f90face9b64a08b002ba6870081f21289af2900 (diff) | |
download | portage-d1779db3525d9c1783e67c2f31a884dae35a60a6.tar.gz portage-d1779db3525d9c1783e67c2f31a884dae35a60a6.tar.bz2 portage-d1779db3525d9c1783e67c2f31a884dae35a60a6.zip |
_emerge.depgraph: If "/" not in trees, treat target_root as running_root (needed for tests)
-rw-r--r-- | pym/_emerge/depgraph.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index aeaee0fcb..150048215 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -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 = {} |