guix package: Allow multiple '--search' flags.
authorLudovic Courtès <ludo@gnu.org>
Mon, 4 Jan 2016 21:27:38 +0000 (22:27 +0100)
committerLudovic Courtès <ludo@gnu.org>
Mon, 4 Jan 2016 23:28:42 +0000 (00:28 +0100)
commitdb5a94445f3b21b307c73ea72ed495bda891ef28
tree8a9367de0e41b6742a47f46a36e751d102b5f934
parentd28ef4393719692371aee085d5723f5779cb6049
guix package: Allow multiple '--search' flags.

* guix/scripts/package.scm (find-packages-by-description): Change 'rx'
parameter to 'regexps'.
[matches-all?, matches-one?]: New procedures.
Use them.
(process-query): Collect regexps from all 'search' queries, and pass
them to 'find-packages-by-description'.
* tests/guix-package.sh: Add tests.
* doc/guix.texi (Invoking guix package): Document it.
doc/guix.texi
guix/scripts/package.scm
tests/guix-package.sh