From d1779db3525d9c1783e67c2f31a884dae35a60a6 Mon Sep 17 00:00:00 2001 From: Sebastian Luther Date: Thu, 5 Aug 2010 15:45:22 +0200 Subject: [PATCH] _emerge.depgraph: If "/" not in trees, treat target_root as running_root (needed for tests) --- pym/_emerge/depgraph.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 = {} -- 2.26.2