aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/traditional_profile.cc
diff options
context:
space:
mode:
authorAvatar Bo ├śrsted Andresen <bo.andresen@zlin.dk> 2010-03-09 05:59:37 +0000
committerAvatar Bo ├śrsted Andresen <bo.andresen@zlin.dk> 2010-03-09 11:49:29 +0000
commit81633f02d9b43b010d82bb28759c49f3a7c0a601 (patch)
tree4c2ff13a996aa937fc2773b931fc92169de78f6d /paludis/repositories/e/traditional_profile.cc
parent53dee1d023f7e45cba0a45130b04a81e4129c46b (diff)
downloadpaludis-81633f02d9b43b010d82bb28759c49f3a7c0a601.tar.gz
paludis-81633f02d9b43b010d82bb28759c49f3a7c0a601.tar.xz
Fix parents handling in exheres-0.
Diffstat (limited to 'paludis/repositories/e/traditional_profile.cc')
-rw-r--r--paludis/repositories/e/traditional_profile.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/paludis/repositories/e/traditional_profile.cc b/paludis/repositories/e/traditional_profile.cc
index 4ae36bb95..2bbad818a 100644
--- a/paludis/repositories/e/traditional_profile.cc
+++ b/paludis/repositories/e/traditional_profile.cc
@@ -133,6 +133,8 @@ namespace paludis
const Environment * const env;
const ERepository * const repository;
+ std::tr1::shared_ptr<FSEntrySequence> profiles_with_parents;
+
///\}
///\name Environment variables
@@ -192,6 +194,7 @@ namespace paludis
package_mask_file(p),
env(e),
repository(p),
+ profiles_with_parents(new FSEntrySequence),
system_packages(new SetSpecTree(make_shared_ptr(new AllDepSpec))),
system_tag(new GeneralSetDepTag(SetName("system"), stringify(name))),
virtuals(new Map<QualifiedPackageName, PackageDepSpec>),
@@ -279,6 +282,8 @@ Implementation<TraditionalProfile>::load_profile_directory_recursively(const FSE
if ((*DistributionData::get_instance()->distribution_from_string(env->distribution())).support_old_style_virtuals())
virtuals_file.add_file(dir / "virtuals");
package_mask_file.add_file(dir / "package.mask");
+
+ profiles_with_parents->push_back(dir);
}
void
@@ -838,6 +843,12 @@ TraditionalProfile::~TraditionalProfile()
{
}
+std::tr1::shared_ptr<const FSEntrySequence>
+TraditionalProfile::profiles_with_parents() const
+{
+ return _imp->profiles_with_parents;
+}
+
bool
TraditionalProfile::use_masked(
const std::tr1::shared_ptr<const PackageID> & id,