aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-07-25 20:59:53 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-07-25 20:59:53 +0000
commitadb49f92a08832d1b084f6767ad6637cfc44ee18 (patch)
tree5bc5811837d4c4c73245755df481f802a1bcb70c
parentcad081cae08aa4e2bca13e141e5a200df007ebc4 (diff)
downloadpaludis-adb49f92a08832d1b084f6767ad6637cfc44ee18.tar.gz
paludis-adb49f92a08832d1b084f6767ad6637cfc44ee18.tar.xz
Make NoConfigEnvironment guess when we're using exheres layouts
-rw-r--r--paludis/environments/no_config/no_config_environment.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/paludis/environments/no_config/no_config_environment.cc b/paludis/environments/no_config/no_config_environment.cc
index 8d053a2..c3bfa0d 100644
--- a/paludis/environments/no_config/no_config_environment.cc
+++ b/paludis/environments/no_config/no_config_environment.cc
@@ -169,6 +169,9 @@ Implementation<NoConfigEnvironment>::initialise(NoConfigEnvironment * const env)
if (FSEntry("/var/empty") != params.master_repository_dir)
keys->insert("master_repository", stringify(master_repo->name()));
+ if ((params.repository_dir / "metadata" / "profiles_desc.conf").exists())
+ keys->insert("layout", "exheres");
+
package_database->add_repository(2, ((main_repo =
RepositoryMaker::get_instance()->find_maker("ebuild")(env, keys))));