Ticket #1043 (closed enhancement: fixed)

Opened 8 years ago

Last modified 8 years ago

Support for "--index" + "--matching" for cave-search

Reported by: mk_fg Owned by:
Priority: Sometime Milestone:
Component: clients/cave Version: scm
Keywords: Cc:
Blocked By: Blocking:
Distribution: Exherbo

Description

As noted in #paludis, --index and --matching options don't work together in cave-search at the moment.

Example:

~% cave search --index /var/cache/paludis/index -m '*/*::installed' gtk
Searching index: 1Internal error at void paludis::cave::FindCandidatesCommand::run_hosted(const std::shared_ptr<paludis::Environment>&, const paludis::cave::SearchCommandLineCandidateOptions&, const paludis::cave::SearchCommandLineMatchOptions&, const paludis::cave::SearchCommandLineIndexOptions&, const std::string&, const std::function<void(const paludis::PackageDepSpec&)>&, const std::function<void(const std::basic_string<char>&)>&) at cmd_find_candidates.cc:172: not yet



Error:
  * In program cave search -m */*::installed gtk:
  * Eek! Internal error at void paludis::cave::FindCandidatesCommand::run_hosted(const std::shared_ptr<paludis::Environment>&, const paludis::cave::SearchCommandLineCandidateOptions&, const paludis::cave::SearchCommandLineMatchOptions&, const paludis::cave::SearchCommandLineIndexOptions&, const std::string&, const std::function<void(const paludis::PackageDepSpec&)>&, const std::function<void(const std::basic_string<char>&)>&) at cmd_find_candidates.cc:172: not yet (paludis::InternalError)

Easy workaround for most cases:

cave print-ids -m '*/*::installed' | grep whatever

Change History

comment:1 Changed 8 years ago by mk_fg

  • Distribution changed from Gentoo to Exherbo

comment:2 Changed 8 years ago by ciaranm

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.