From: Sebastian Luther Date: Thu, 5 Aug 2010 13:45:22 +0000 (+0200) Subject: _emerge.depgraph: If "/" not in trees, treat target_root as running_root (needed... X-Git-Tag: v2.2_rc68~397 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d1779db3525d9c1783e67c2f31a884dae35a60a6;p=portage.git _emerge.depgraph: If "/" not in trees, treat target_root as running_root (needed for tests) --- 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 = {}