aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave/owner_common.cc
diff options
context:
space:
mode:
authorAvatar Alex Elsayed <eternaleye@gmail.com> 2011-06-27 18:50:34 -0700
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-06-30 10:27:28 +0100
commitb6f5d29a9561fd16a28b57850a10c605cd9d5c90 (patch)
tree4f59a226cd40e459a230d75a9501d3ef2b5c1709 /src/clients/cave/owner_common.cc
parent21af4bf5f51e7e146ccd52b7c24f42ab12bea98c (diff)
downloadpaludis-b6f5d29a9561fd16a28b57850a10c605cd9d5c90.tar.gz
paludis-b6f5d29a9561fd16a28b57850a10c605cd9d5c90.tar.xz
Implement --matching for 'owner' and 'print-owners' cave subcommands
Diffstat (limited to 'src/clients/cave/owner_common.cc')
-rw-r--r--src/clients/cave/owner_common.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/clients/cave/owner_common.cc b/src/clients/cave/owner_common.cc
index 7032174..66f974e 100644
--- a/src/clients/cave/owner_common.cc
+++ b/src/clients/cave/owner_common.cc
@@ -61,6 +61,7 @@ int
paludis::cave::owner_common(
const std::shared_ptr<Environment> & env,
const std::string & type,
+ const Filter & matching,
const std::string & q,
const bool dereference,
const std::function<void (const std::shared_ptr<const PackageID> &)> & callback)
@@ -100,7 +101,7 @@ paludis::cave::owner_common(
}
std::shared_ptr<const PackageIDSequence> ids((*env)[selection::AllVersionsSorted(generator::All() |
- filter::InstalledAtRoot(env->preferred_root_key()->parse_value()))]);
+ filter::InstalledAtRoot(env->preferred_root_key()->parse_value()) | matching )]);
for (PackageIDSequence::ConstIterator p(ids->begin()), p_end(ids->end()); p != p_end; ++p)
{