aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2017-06-13 23:04:05 +0200
committerLudovic Courtès <ludo@gnu.org>2017-06-13 23:22:19 +0200
commit4e863eb35fd8337eab48928e7733b7f6b7b2c242 (patch)
tree80c8606b7787e724f52dca738cff47de339e3045 /gnu/packages/patches
parent4ee79f22f5379b201eabca94c3ab34bb00a8a8b0 (diff)
downloadgnu-guix-4e863eb35fd8337eab48928e7733b7f6b7b2c242.tar
gnu-guix-4e863eb35fd8337eab48928e7733b7f6b7b2c242.tar.gz
guix package: '--search' sorts by relevance.
* guix/scripts/package.scm (find-packages-by-description): Rewrite to compute a score based on the number of regexps matched and the number of matches for each regexp. Sort according to this score and return it as a second value. (process-query) <'search>: Capture the two return values of 'find-packages-by-description'. Pass #:extra-fields to 'package->recutils'. * doc/guix.texi (Invoking guix package): Mention relevance, give an example.
Diffstat (limited to 'gnu/packages/patches')
0 files changed, 0 insertions, 0 deletions