aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-03-12 17:29:59 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-03-14 09:52:03 +0000
commit8e08d1d44136248f644ba2812a31ee494189e766 (patch)
tree06afd0bf0fe3ff7525f78e628dc65ec43be934c1
parent4a96bed078086ca40b2862200e56fbbfcdd676b1 (diff)
downloadpaludis-8e08d1d44136248f644ba2812a31ee494189e766.tar.gz
paludis-8e08d1d44136248f644ba2812a31ee494189e766.tar.xz
find-candidates might use match options too
-rw-r--r--src/clients/cave/cmd_find_candidates.cc7
-rw-r--r--src/clients/cave/cmd_find_candidates.hh1
2 files changed, 6 insertions, 2 deletions
diff --git a/src/clients/cave/cmd_find_candidates.cc b/src/clients/cave/cmd_find_candidates.cc
index eb2a947..a33d93a 100644
--- a/src/clients/cave/cmd_find_candidates.cc
+++ b/src/clients/cave/cmd_find_candidates.cc
@@ -73,9 +73,11 @@ namespace
}
SearchCommandLineCandidateOptions search_options;
+ SearchCommandLineMatchOptions match_options;
FindCandidatesCommandLine() :
- search_options(this)
+ search_options(this),
+ match_options(this)
{
}
};
@@ -107,7 +109,7 @@ FindCandidatesCommand::run(
const std::tr1::shared_ptr<Set<std::string> > patterns(new Set<std::string>);
std::copy(cmdline.begin_parameters(), cmdline.end_parameters(), patterns->inserter());
- run_hosted(env, cmdline.search_options, patterns, &print_spec);
+ run_hosted(env, cmdline.search_options, cmdline.match_options, patterns, &print_spec);
return EXIT_SUCCESS;
}
@@ -120,6 +122,7 @@ void
FindCandidatesCommand::run_hosted(
const std::tr1::shared_ptr<Environment> & env,
const SearchCommandLineCandidateOptions & search_options,
+ const SearchCommandLineMatchOptions &,
const std::tr1::shared_ptr<const Set<std::string> > &,
const std::tr1::function<void (const PackageDepSpec &)> & yield)
{
diff --git a/src/clients/cave/cmd_find_candidates.hh b/src/clients/cave/cmd_find_candidates.hh
index 99bb6b6..c028151 100644
--- a/src/clients/cave/cmd_find_candidates.hh
+++ b/src/clients/cave/cmd_find_candidates.hh
@@ -42,6 +42,7 @@ namespace paludis
void run_hosted(
const std::tr1::shared_ptr<Environment> &,
const SearchCommandLineCandidateOptions &,
+ const SearchCommandLineMatchOptions &,
const std::tr1::shared_ptr<const Set<std::string> > &,
const std::tr1::function<void (const PackageDepSpec &)> &);