From: Sebastian Luther <sebastianlut...@gmx.de> --- pym/portage/tests/resolver/ResolverPlayground.py | 7 +++++++ 1 file changed, 7 insertions(+)
diff --git a/pym/portage/tests/resolver/ResolverPlayground.py b/pym/portage/tests/resolver/ResolverPlayground.py index e09e265..8487b9c 100644 --- a/pym/portage/tests/resolver/ResolverPlayground.py +++ b/pym/portage/tests/resolver/ResolverPlayground.py @@ -302,6 +302,13 @@ class ResolverPlayground(object): #Create $profile_dir/eclass (we fail to digest the ebuilds if it's not there) os.makedirs(os.path.join(repo_dir, "eclass")) + # Set masters key in layout.conf for all repos except 'main-repo' + if repo != "test_repo" and (not repo_config or "layout.conf" not in repo_config): + layout_conf_path = os.path.join(repo_dir, "metadata", "layout.conf") + f = open(layout_conf_path, "w") + f.write("masters = test_repo\n") + f.close() + if repo == "test_repo": #Create a minimal profile in /usr/portage sub_profile_dir = os.path.join(profile_dir, "default", "linux", "x86", "test_profile") -- 1.8.3.2