aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-01-06 22:48:38 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-01-06 22:48:38 +0000
commit6211dbf9818e5817eba9622ac844ea671dd94a0d (patch)
treebc223cc7d5f58636d445e8a0bde3360259e43b8e
parent06c4d1f163a33bf72a2c30637d9909e2e1b878fa (diff)
downloadpaludis-6211dbf9818e5817eba9622ac844ea671dd94a0d.tar.gz
paludis-6211dbf9818e5817eba9622ac844ea671dd94a0d.tar.xz
Inherit profile_layout from master
-rw-r--r--paludis/repositories/e/e_repository.cc11
1 files changed, 8 insertions, 3 deletions
diff --git a/paludis/repositories/e/e_repository.cc b/paludis/repositories/e/e_repository.cc
index 02150bd..2a3a724 100644
--- a/paludis/repositories/e/e_repository.cc
+++ b/paludis/repositories/e/e_repository.cc
@@ -1440,9 +1440,14 @@ ERepository::repository_factory_create(
{
if (! layout_conf
|| (profile_layout = layout_conf->get("profile_layout")).empty())
- profile_layout = EExtraDistributionData::get_instance()->data_from_distribution(
- *DistributionData::get_instance()->distribution_from_string(
- env->distribution()))->default_profile_layout();
+ {
+ if (master_repositories)
+ profile_layout = (*master_repositories->begin())->params().profile_layout();
+ else
+ profile_layout = EExtraDistributionData::get_instance()->data_from_distribution(
+ *DistributionData::get_instance()->distribution_from_string(
+ env->distribution()))->default_profile_layout();
+ }
}
UseManifest use_manifest(manifest_use);