[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#36763: `guix search` does unexpected logical and
From: |
zimoun |
Subject: |
bug#36763: `guix search` does unexpected logical and |
Date: |
Mon, 22 Jul 2019 19:11:50 +0200 |
Dear,
As discussed here [1], the `relevance` in `guix/ui.scm` does not match
"inter-field".
Attached a fix.
Now, the example from the manual
$ guix search crypto library | \
recsel -e '! (name ~ "^(ghc|perl|python|ruby)")' -p name,synopsis
outputs the expected crypto libraries as `libb2`.
Please comment. :-)
Then, please indicate me how the commit has to be filled.
The commit 8874faaaac665100a095ef25e39c9a389f5a397f introducing the
logical AND says:
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.
Should another test be added?
[1] https://lists.gnu.org/archive/html/guix-devel/2019-07/msg00263.html
Thank you in advance,
simon
search.patch
Description: Text Data
- bug#36763: `guix search` does unexpected logical and,
zimoun <=