search by suggests

Bug #1332039 reported by Elan Ruusamäe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
poldek
Fix Released
Undecided
Marcin Banasiak

Bug Description

please add option to search by "Suggests:" field
additionally "what-suggests" alias would be nice

poldek:/all-avail> search -?
Usage: search [OPTION...] PATTERN [PACKAGE...]
Search packages

  -a, --all Search all described fields, the defaults are: -sd
  -c, --conflicts Search conflicts
  -d, --description Search descriptions
  -f, -l, --files Search file list
  -g, --group Search groups
  -L, --changelog Search changelogs
  -o, --obsoletes Search obsolences
  -p, --provides Search capabilities
      --perlre Threat PATTERN as Perl regular expression
  -r, --requires Search requirements
  -s, --summary Search summaries, urls and license
  -q Be quiet
  -v Be verbose.
  -?, --help Give this help list
      --usage Give a short usage message

  With --perlre pattern must be supplied as:
     <delimiter>perl-regexp<delimiter>[imsx]
  For example to find the packages containing foo.bar do:
     search --perlre /foo\.bar/
  See perlre(1) for more details.

  Defined aliases:
    rsearch "search --perlre"
    what-provides "search -p"
    what-requires "search -r"
poldek:/all-avail>

Changed in poldek:
assignee: nobody → Marcin Banasiak (megabajt)
status: New → In Progress
Revision history for this message
Marcin Banasiak (megabajt) wrote :

Commited in 122d4bf44198c008a5986ae01e9e3b54cff422e1.

Changed in poldek:
status: In Progress → Fix Committed
Changed in poldek:
status: Fix Committed → Fix Released
Revision history for this message
Elan Ruusamäe (glen666) wrote :

you forgot to mention what is the syntax and poldek version since it's available

from currrent "th", poldek-0.30.1-17.x86_64 it does not seem to be available
poldek-0.32.0-1.x86_64 from th-test seems has it as "-S, --suggests Search suggests"

poldek:/all-avail> search -?
Usage: search [OPTION...] PATTERN [PACKAGE...]
Search packages

  -a, --all Search all described fields, the defaults are: -sd
  -c, --conflicts Search conflicts
  -d, --description Search descriptions
  -f, -l, --files Search file list
  -g, --group Search groups
  -L, --changelog Search changelogs
  -o, --obsoletes Search obsolences
  -p, --provides Search capabilities
      --perlre Threat PATTERN as Perl regular expression
  -r, --requires Search requirements
  -s, --summary Search summaries, urls and license
  -S, --suggests Search suggests
  -q Be quiet
  -v Be verbose.
  -?, --help Give this help list
      --usage Give a short usage message

  With --perlre pattern must be supplied as:
     <delimiter>perl-regexp<delimiter>[imsx]
  For example to find the packages containing foo.bar do:
     search --perlre /foo\.bar/
  See perlre(1) for more details.

  Defined aliases:
    rsearch "search --perlre"
    what-provides "search -p"
    what-requires

also the commit can not be found, googling results this page only
and git vcs is not setup for poldek project https://code.launchpad.net/poldek

Revision history for this message
Elan Ruusamäe (glen666) wrote :

and no alias

poldek:/all-avail> what-suggests
error: what-suggests: no such command

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.