aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/accounts/accounts_repository.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-12-16 13:58:49 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-12-16 13:58:49 +0000
commit3437c3c717e2aff920266d24f0b5d2166acb214a (patch)
tree045eb1fc9bd26f5d8c53f1cad66e5987914478e1 /paludis/repositories/accounts/accounts_repository.cc
parent6b36e86d003321a4f644d8e83ae2bd6428c1b07e (diff)
downloadpaludis-3437c3c717e2aff920266d24f0b5d2166acb214a.tar.gz
paludis-3437c3c717e2aff920266d24f0b5d2166acb214a.tar.xz
everything -> installed-{packages,slots}
Diffstat (limited to 'paludis/repositories/accounts/accounts_repository.cc')
-rw-r--r--paludis/repositories/accounts/accounts_repository.cc33
1 files changed, 2 insertions, 31 deletions
diff --git a/paludis/repositories/accounts/accounts_repository.cc b/paludis/repositories/accounts/accounts_repository.cc
index 1a3a2aa59..ec80a9ab8 100644
--- a/paludis/repositories/accounts/accounts_repository.cc
+++ b/paludis/repositories/accounts/accounts_repository.cc
@@ -39,6 +39,7 @@
#include <paludis/selection.hh>
#include <paludis/filtered_generator.hh>
#include <paludis/hook.hh>
+#include <paludis/common_sets.hh>
using namespace paludis;
using namespace paludis::accounts_repository;
@@ -410,29 +411,6 @@ AccountsRepository::merge(const MergeParams & m)
_imp->handler_if_installed->merge(m);
}
-namespace
-{
- std::tr1::shared_ptr<SetSpecTree> get_everything_set(
- const Environment * const env,
- const AccountsRepository * const repo)
- {
- Context context("When making 'everything' set from '" + stringify(repo->name()) + "':");
-
- std::tr1::shared_ptr<SetSpecTree> result(new SetSpecTree(make_shared_ptr(new AllDepSpec)));
-
- std::tr1::shared_ptr<const PackageIDSequence> ids((*env)[selection::BestVersionOnly(
- generator::InRepository(repo->name()))]);
- for (PackageIDSequence::ConstIterator i(ids->begin()), i_end(ids->end()) ;
- i != i_end ; ++i)
- result->root()->append(make_shared_ptr(new PackageDepSpec(
- make_package_dep_spec(PartiallyMadePackageDepSpecOptions())
- .package((*i)->name())
- )));
-
- return result;
- }
-}
-
void
AccountsRepository::populate_sets() const
{
@@ -441,14 +419,7 @@ AccountsRepository::populate_sets() const
/* no sets */
}
else
- {
- /* everything */
- _imp->params_if_installed->environment()->add_set(
- SetName("everything"),
- SetName("everything::" + stringify(name())),
- std::tr1::bind(get_everything_set, _imp->params_if_installed->environment(), this),
- true);
- }
+ add_common_sets_for_installed_repo(_imp->params_if_installed->environment(), *this);
}
HookResult