[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#58136] [PATCH] ui: Improve sort order when searching package names.
From: |
Lars-Dominik Braun |
Subject: |
[bug#58136] [PATCH] ui: Improve sort order when searching package names. |
Date: |
Tue, 13 Dec 2022 15:53:41 +0100 |
Hi Ludo,
> Applied with the minor changes below, thank you!
thank you!
> +(test-assert "package-relevance and upstream name"
> + ;; https://issues.guix.gnu.org/58136
> + (let ((ggplot2 (specification->package "r-ggplot2"))
> + (ggstance (specification->package "r-ggstance"))
> + (rx (make-regexp "ggplot2" regexp/icase)))
> + (> (package-relevance ggplot2 (list rx))
> + (package-relevance ggstance (list rx))
> + 0)))
I was hesitant to add a system test, which depends on real package
descriptions (not synthetic ones), because at some point it *will* break.
Cheers,
Lars