summaryrefslogtreecommitdiff
path: root/guix/scripts/package.scm
diff options
context:
space:
mode:
authorChris Marusich <cmmarusich@gmail.com>2019-05-06 01:51:30 -0700
committerChris Marusich <cmmarusich@gmail.com>2019-05-09 00:10:34 -0700
commit387e6b9e340ce4b401f220f72881415623a466f7 (patch)
treecc75376dfc2ae5948a16cb604cda50eec525587a /guix/scripts/package.scm
parent063edf928a3ea0e9c423707926f30502ab56fe67 (diff)
downloadpatches-387e6b9e340ce4b401f220f72881415623a466f7.tar
patches-387e6b9e340ce4b401f220f72881415623a466f7.tar.gz
ui: Make package outputs searchable.
* guix/ui.scm (relevance): Allow the "field" procedure of a metric to return a list, and handle that case appropriately. Update docstring. (%package-metrics): Add a metric for package outputs. * guix/scripts/package.scm (find-packages-by-description): Update docstring. * tests/guix-package.sh: Add a test case to verify that package outputs are included in search results. Co-authored-by: Tobias Geerinckx-Rice <me@tobias.gr>
Diffstat (limited to 'guix/scripts/package.scm')
-rw-r--r--guix/scripts/package.scm6
1 files changed, 3 insertions, 3 deletions
diff --git a/guix/scripts/package.scm b/guix/scripts/package.scm
index aa27984ea2..06e4cf5b9c 100644
--- a/guix/scripts/package.scm
+++ b/guix/scripts/package.scm
@@ -180,9 +180,9 @@ hooks\" run when building the profile."
;;;
(define (find-packages-by-description regexps)
- "Return two values: the list of packages whose name, synopsis, or
-description matches at least one of REGEXPS sorted by relevance, and the list
-of relevance scores."
+ "Return two values: the list of packages whose name, synopsis, description,
+or output matches at least one of REGEXPS sorted by relevance, and the list of
+relevance scores."
(let ((matches (fold-packages (lambda (package result)
(if (package-superseded package)
result