summaryrefslogtreecommitdiff
path: root/guix
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2022-12-09 12:01:31 +0100
committerLudovic Courtès <ludo@gnu.org>2022-12-13 17:46:39 +0100
commitbbcd06e56c06376e640a7ac81a7109e7135a20f2 (patch)
treeec53b144f9a8f1a8f12b496065e62036efa271f4 /guix
parent052faadde70c44043d0db73bd254f664e1905ceb (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.scm1
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)