aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/fake/fake_repository_base.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-08-13 22:22:04 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-08-25 20:57:34 +0100
commitd3a6729806b151177a499da5045bc0565432ea6d (patch)
tree3002a66bfc8eedefc97f52602cc817574061ff1b /paludis/repositories/fake/fake_repository_base.cc
parentefe1d56f129dea213603e2f2b58c14e529f2695f (diff)
downloadpaludis-d3a6729806b151177a499da5045bc0565432ea6d.tar.gz
paludis-d3a6729806b151177a499da5045bc0565432ea6d.tar.xz
Do sets differently
Sets from repositories are now named setname::repo, and we automatically create a master setname containing all of those sets. Cache sets cleanly whilst we're at it. Fixes: ticket:746
Diffstat (limited to 'paludis/repositories/fake/fake_repository_base.cc')
-rw-r--r--paludis/repositories/fake/fake_repository_base.cc31
1 files changed, 5 insertions, 26 deletions
diff --git a/paludis/repositories/fake/fake_repository_base.cc b/paludis/repositories/fake/fake_repository_base.cc
index 8f0515b..51ce369 100644
--- a/paludis/repositories/fake/fake_repository_base.cc
+++ b/paludis/repositories/fake/fake_repository_base.cc
@@ -48,7 +48,6 @@ namespace paludis
std::tr1::shared_ptr<CategoryNamePartSet> category_names;
std::map<CategoryNamePart, std::tr1::shared_ptr<PackageNamePartSet> > package_names;
std::map<QualifiedPackageName, std::tr1::shared_ptr<PackageIDSequence> > ids;
- std::map<SetName, std::tr1::shared_ptr<const SetSpecTree> > sets;
const Environment * const env;
@@ -164,31 +163,6 @@ FakeRepositoryBase::invalidate_masks()
(*it2)->invalidate_masks();
}
-void
-FakeRepositoryBase::add_package_set(const SetName & n, const std::tr1::shared_ptr<const SetSpecTree> & s)
-{
- _imp->sets.insert(std::make_pair(n, s));
-}
-
-const std::tr1::shared_ptr<const SetSpecTree>
-FakeRepositoryBase::package_set(const SetName & id) const
-{
- std::map<SetName, std::tr1::shared_ptr<const SetSpecTree> >::const_iterator i(_imp->sets.find(id));
- if (_imp->sets.end() == i)
- return std::tr1::shared_ptr<const SetSpecTree>();
- else
- return i->second;
-}
-
-std::tr1::shared_ptr<const SetNameSet>
-FakeRepositoryBase::sets_list() const
-{
- std::tr1::shared_ptr<SetNameSet> result(new SetNameSet);
- std::transform(_imp->sets.begin(), _imp->sets.end(), result->inserter(),
- std::tr1::mem_fn(&std::pair<const SetName, std::tr1::shared_ptr<const SetSpecTree> >::first));
- return result;
-}
-
const Environment *
FakeRepositoryBase::environment() const
{
@@ -200,3 +174,8 @@ FakeRepositoryBase::need_keys_added() const
{
}
+void
+FakeRepositoryBase::populate_sets() const
+{
+}
+