diff options
author | 2010-08-05 15:45:22 +0200 | |
---|---|---|
committer | 2010-08-05 13:37:33 -0700 | |
commit | d1779db3525d9c1783e67c2f31a884dae35a60a6 (patch) | |
tree | 63f9a0e109dd7ed75dfc4ec07ca4b80293e66e9f | |
parent | Make some variables local. (diff) | |
download | portage-multirepo-d1779db3525d9c1783e67c2f31a884dae35a60a6.tar.gz portage-multirepo-d1779db3525d9c1783e67c2f31a884dae35a60a6.tar.bz2 portage-multirepo-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 aeaee0fc..15004821 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 = {} |