aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave/owner_common.cc
diff options
context:
space:
mode:
authorAvatar Alex Elsayed <eternaleye@gmail.com> 2011-06-27 18:49:23 -0700
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-06-30 10:27:28 +0100
commit21af4bf5f51e7e146ccd52b7c24f42ab12bea98c (patch)
tree21986cb21724e12d6cf7d40e98ba6d07ce170300 /src/clients/cave/owner_common.cc
parent24109768eccadd986a80080f8fe5db3ed0fc5b38 (diff)
downloadpaludis-21af4bf5f51e7e146ccd52b7c24f42ab12bea98c.tar.gz
paludis-21af4bf5f51e7e146ccd52b7c24f42ab12bea98c.tar.xz
Switch 'owner' and 'print-owners' cave subcommands from --match to --type
Diffstat (limited to 'src/clients/cave/owner_common.cc')
-rw-r--r--src/clients/cave/owner_common.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/clients/cave/owner_common.cc b/src/clients/cave/owner_common.cc
index 5b7a205d8..7032174ea 100644
--- a/src/clients/cave/owner_common.cc
+++ b/src/clients/cave/owner_common.cc
@@ -60,7 +60,7 @@ namespace
int
paludis::cave::owner_common(
const std::shared_ptr<Environment> & env,
- const std::string & match,
+ const std::string & type,
const std::string & q,
const bool dereference,
const std::function<void (const std::shared_ptr<const PackageID> &)> & callback)
@@ -83,11 +83,11 @@ paludis::cave::owner_common(
if (query.length() >= 2 && '/' == query.at(query.length() - 1))
query.erase(query.length() - 1);
- if ("full" == match)
+ if ("full" == type)
handler = handle_full;
- else if ("basename" == match)
+ else if ("basename" == type)
handler = handle_basename;
- else if ("partial" == match)
+ else if ("partial" == type)
handler = handle_partial;
else
{