ui: 'relevance' connects regexps with a logical and.
authorzimoun <zimon.toutoune@gmail.com>
Wed, 18 Sep 2019 15:57:57 +0000 (17:57 +0200)
committerLudovic Courtès <ludo@gnu.org>
Thu, 19 Sep 2019 21:24:04 +0000 (23:24 +0200)
commitd2cdef65605b9e14bfa02c3bf1612ab6b62f4a89
tree6868972815e7deca295565a2e84efad7783604ae
parent6ec872231fdf746bd6e11b97f8a6b3a23498806c
ui: 'relevance' connects regexps with a logical and.

Fixes <https://bugs.gnu.org/36763>.
Previously, the logical and connecting the regexps did not output the expected
results (introduced in 8874faaaac665100a095ef25e39c9a389f5a397f).

* guix/ui.scm (relevance)
[score]: Change its arguments.
[regexp->score]: New procedure.
* tests/ui.scm ("package-relevance"): Add test.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
guix/ui.scm
tests/ui.scm