aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-01-26 19:23:24 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-01-26 19:23:51 +0000
commit4489a10314fdfc3ebe55b7b61d2c7904f3d65f2e (patch)
tree9953303b813af857ef7df2f3b1495b3ad95107dc
parente08cf92049b17fe6b9fe71387adb0bf92b21568d (diff)
downloadpaludis-4489a10314fdfc3ebe55b7b61d2c7904f3d65f2e.tar.gz
paludis-4489a10314fdfc3ebe55b7b61d2c7904f3d65f2e.tar.xz
Fix might support tests for accounts
-rw-r--r--paludis/repositories/accounts/accounts_repository.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/paludis/repositories/accounts/accounts_repository.cc b/paludis/repositories/accounts/accounts_repository.cc
index dee923f..6d5c36e 100644
--- a/paludis/repositories/accounts/accounts_repository.cc
+++ b/paludis/repositories/accounts/accounts_repository.cc
@@ -337,6 +337,13 @@ namespace
{
struct SupportsActionQuery
{
+ bool installed;
+
+ SupportsActionQuery(bool b) :
+ installed(b)
+ {
+ }
+
bool visit(const SupportsActionTest<InstalledAction> &) const
{
return false;
@@ -382,7 +389,7 @@ namespace
bool
AccountsRepository::some_ids_might_support_action(const SupportsActionTestBase & a) const
{
- SupportsActionQuery q;
+ SupportsActionQuery q(_imp->params_if_installed);
return a.accept_returning<bool>(q);
}