ui: 'relevance' considers regexps connected with a logical and.
authorLudovic Courtès <ludo@gnu.org>
Tue, 25 Jun 2019 20:59:58 +0000 (22:59 +0200)
committerLudovic Courtès <ludo@gnu.org>
Thu, 27 Jun 2019 09:14:40 +0000 (11:14 +0200)
commit8874faaaac665100a095ef25e39c9a389f5a397f
tree2637ca9b5f10a73f799c87792b3ba00d03921ad2
parentc25b44d640f709599e3c484a458ae452d99108e1
ui: 'relevance' considers regexps connected with a logical and.

* guix/ui.scm (relevance)[score]: Change to return 0 when one of REGEXPS
doesn't match.
* tests/ui.scm ("package-relevance"): New test.
guix/ui.scm
tests/ui.scm