aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/accounts
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-02-27 22:08:29 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-02-28 15:31:18 +0000
commitbf9e33c1c76c2c2387ada7ae7294efa21a1c2f2f (patch)
treefe00ac0ca9434b268499b6380220140fc5e1a816 /paludis/repositories/accounts
parent761f72d25876dac3e239fad163123d35cacda4a0 (diff)
downloadpaludis-bf9e33c1c76c2c2387ada7ae7294efa21a1c2f2f.tar.gz
paludis-bf9e33c1c76c2c2387ada7ae7294efa21a1c2f2f.tar.xz
Allow repos to return partial results if faster
Diffstat (limited to 'paludis/repositories/accounts')
-rw-r--r--paludis/repositories/accounts/accounts_repository.cc16
-rw-r--r--paludis/repositories/accounts/accounts_repository.hh14
2 files changed, 15 insertions, 15 deletions
diff --git a/paludis/repositories/accounts/accounts_repository.cc b/paludis/repositories/accounts/accounts_repository.cc
index a84d72a46..4a1fd33ae 100644
--- a/paludis/repositories/accounts/accounts_repository.cc
+++ b/paludis/repositories/accounts/accounts_repository.cc
@@ -296,43 +296,43 @@ AccountsRepository::is_unimportant() const
}
bool
-AccountsRepository::has_category_named(const CategoryNamePart & c) const
+AccountsRepository::has_category_named(const CategoryNamePart & c, const RepositoryContentMayExcludes &) const
{
return _imp->store->has_category_named(c);
}
bool
-AccountsRepository::has_package_named(const QualifiedPackageName & q) const
+AccountsRepository::has_package_named(const QualifiedPackageName & q, const RepositoryContentMayExcludes &) const
{
return _imp->store->has_package_named(q);
}
std::shared_ptr<const CategoryNamePartSet>
-AccountsRepository::category_names() const
+AccountsRepository::category_names(const RepositoryContentMayExcludes &) const
{
return _imp->store->category_names();
}
std::shared_ptr<const CategoryNamePartSet>
-AccountsRepository::unimportant_category_names() const
+AccountsRepository::unimportant_category_names(const RepositoryContentMayExcludes &) const
{
return _imp->store->unimportant_category_names();
}
std::shared_ptr<const CategoryNamePartSet>
-AccountsRepository::category_names_containing_package(const PackageNamePart & p) const
+AccountsRepository::category_names_containing_package(const PackageNamePart & p, const RepositoryContentMayExcludes & x) const
{
- return Repository::category_names_containing_package(p);
+ return Repository::category_names_containing_package(p, x);
}
std::shared_ptr<const QualifiedPackageNameSet>
-AccountsRepository::package_names(const CategoryNamePart & c) const
+AccountsRepository::package_names(const CategoryNamePart & c, const RepositoryContentMayExcludes &) const
{
return _imp->store->package_names(c);
}
std::shared_ptr<const PackageIDSequence>
-AccountsRepository::package_ids(const QualifiedPackageName & p) const
+AccountsRepository::package_ids(const QualifiedPackageName & p, const RepositoryContentMayExcludes &) const
{
return _imp->store->package_ids(p);
}
diff --git a/paludis/repositories/accounts/accounts_repository.hh b/paludis/repositories/accounts/accounts_repository.hh
index 78d030791..3b8aff3f0 100644
--- a/paludis/repositories/accounts/accounts_repository.hh
+++ b/paludis/repositories/accounts/accounts_repository.hh
@@ -120,15 +120,15 @@ namespace paludis
///\{
virtual const bool is_unimportant() const;
- virtual bool has_category_named(const CategoryNamePart & c) const;
- virtual bool has_package_named(const QualifiedPackageName & q) const;
- virtual std::shared_ptr<const CategoryNamePartSet> category_names() const;
- virtual std::shared_ptr<const CategoryNamePartSet> unimportant_category_names() const;
+ virtual bool has_category_named(const CategoryNamePart & c, const RepositoryContentMayExcludes &) const;
+ virtual bool has_package_named(const QualifiedPackageName & q, const RepositoryContentMayExcludes &) const;
+ virtual std::shared_ptr<const CategoryNamePartSet> category_names(const RepositoryContentMayExcludes &) const;
+ virtual std::shared_ptr<const CategoryNamePartSet> unimportant_category_names(const RepositoryContentMayExcludes &) const;
virtual std::shared_ptr<const CategoryNamePartSet> category_names_containing_package(
- const PackageNamePart & p) const;
+ const PackageNamePart & p, const RepositoryContentMayExcludes &) const;
virtual std::shared_ptr<const QualifiedPackageNameSet> package_names(
- const CategoryNamePart & c) const;
- virtual std::shared_ptr<const PackageIDSequence> package_ids(const QualifiedPackageName & p) const;
+ const CategoryNamePart & c, const RepositoryContentMayExcludes &) const;
+ virtual std::shared_ptr<const PackageIDSequence> package_ids(const QualifiedPackageName & p, const RepositoryContentMayExcludes &) const;
virtual bool some_ids_might_support_action(const SupportsActionTestBase &) const;
virtual bool some_ids_might_not_be_masked() const;