From c0ee69585bf87e09c237668531127e79e0cd1c46 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 19 Aug 2010 21:28:10 -0700 Subject: Add experimental EPREFIX/EROOT support to the config and vartree classes, and use it in ResolverPlayground to emulate a prefix-like environment. This fixes ResolverPlayground so that it doesn't have to abuse the --root and --root-deps options in order to create a testing environment. Instead it simply creates a temporary EPREFIX. WARNING: EPREFIX/EROOT support is experimental and may be incomplete for cases in which EPREFIX is non-empty. --- pym/_emerge/depgraph.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'pym/_emerge/depgraph.py') diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index ed64e49e0..704686567 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -72,10 +72,7 @@ class _frozen_depgraph_config(object): if settings.get("PORTAGE_DEBUG", "") == "1": self.edebug = 1 self.spinner = spinner - if "_test_" in myopts and "/" not in trees: - self._running_root = trees[self.target_root]["root_config"] - else: - self._running_root = trees["/"]["root_config"] + self._running_root = trees["/"]["root_config"] self._opts_no_restart = frozenset(["--buildpkgonly", "--fetchonly", "--fetch-all-uri", "--pretend"]) self.pkgsettings = {} -- cgit v1.2.3-1-g7c22