diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2022-12-09 12:01:31 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2022-12-13 17:46:39 +0100 |
commit | bbcd06e56c06376e640a7ac81a7109e7135a20f2 (patch) | |
tree | ec53b144f9a8f1a8f12b496065e62036efa271f4 /guix | |
parent | 052faadde70c44043d0db73bd254f664e1905ceb (diff) |
ui: Take package upstream name into account when searching.
* guix/ui.scm (%package-metrics): Add PACKAGE-UPSTREAM-NAME*.
* tests/ui.scm ("package-relevance and upstream name"): New test.
Co-authored-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'guix')
-rw-r--r-- | guix/ui.scm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/guix/ui.scm b/guix/ui.scm index 45eccb7335..3bca3b1e40 100644 --- a/guix/ui.scm +++ b/guix/ui.scm @@ -1668,6 +1668,7 @@ score, the more relevant OBJ is to REGEXPS." ;; Metrics used to compute the "relevance score" of a package against a set ;; of regexps. `((,package-name . 4) + (,package-upstream-name* . 2) ;; Match against uncommon outputs. (,(lambda (package) |