aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/e_repository_profile.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-10-07 07:49:36 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-10-07 07:49:36 +0000
commit84451d51c2b34fcfc9cd1fddbb6cf7987a971686 (patch)
tree5d8d9903988c70b80b1e367e46c1d615ec206254 /paludis/repositories/e/e_repository_profile.cc
parent6faddfce5e7e803e2f456a497d8f8686952c2635 (diff)
downloadpaludis-84451d51c2b34fcfc9cd1fddbb6cf7987a971686.tar.gz
paludis-84451d51c2b34fcfc9cd1fddbb6cf7987a971686.tar.xz
NamedSetDepSpec. Fixes: ticket:305
Diffstat (limited to 'paludis/repositories/e/e_repository_profile.cc')
-rw-r--r--paludis/repositories/e/e_repository_profile.cc20
1 files changed, 11 insertions, 9 deletions
diff --git a/paludis/repositories/e/e_repository_profile.cc b/paludis/repositories/e/e_repository_profile.cc
index d0334098f..21e8f3149 100644
--- a/paludis/repositories/e/e_repository_profile.cc
+++ b/paludis/repositories/e/e_repository_profile.cc
@@ -427,16 +427,18 @@ Implementation<ERepositoryProfile>::make_vars_from_file_vars()
{
try
{
- for (erepository::ProfileFile<LineConfigFile>::ConstIterator i(packages_file.begin()), i_end(packages_file.end()) ; i != i_end ; ++i)
- {
- if (0 != i->compare(0, 1, "*", 0, 1))
- continue;
+ if (! repository->params().master_repository)
+ for (erepository::ProfileFile<LineConfigFile>::ConstIterator i(packages_file.begin()),
+ i_end(packages_file.end()) ; i != i_end ; ++i)
+ {
+ if (0 != i->compare(0, 1, "*", 0, 1))
+ continue;
- Context context_spec("When parsing '" + *i + "':");
- tr1::shared_ptr<PackageDepSpec> spec(new PackageDepSpec(i->substr(1), pds_pm_eapi_0));
- spec->set_tag(system_tag);
- system_packages->add(tr1::shared_ptr<SetSpecTree::ConstItem>(new TreeLeaf<SetSpecTree, PackageDepSpec>(spec)));
- }
+ Context context_spec("When parsing '" + *i + "':");
+ tr1::shared_ptr<PackageDepSpec> spec(new PackageDepSpec(i->substr(1), pds_pm_eapi_0));
+ spec->set_tag(system_tag);
+ system_packages->add(tr1::shared_ptr<SetSpecTree::ConstItem>(new TreeLeaf<SetSpecTree, PackageDepSpec>(spec)));
+ }
}
catch (const Exception & e)
{