[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#58136] [PATCH] ui: Improve sort order when searching package names.
From: |
zimoun |
Subject: |
[bug#58136] [PATCH] ui: Improve sort order when searching package names. |
Date: |
Sun, 02 Oct 2022 10:26:26 +0200 |
Hi,
On Sat, 01 Oct 2022 at 23:42, Ludovic Courtès <ludo@gnu.org> wrote:
> (define (package-upstream-name* package)
> (or (assoc-ref (package-properties package) 'upstream-name)
> (package-name-sans-namespace package))) ;strip "r-", "emacs-", etc.
I think it is better to rely on ’package-upstream-name’ and hides the
plumbing. It helps when something needs to be “refactored“, IMHO.
> (Perhaps ‘package-upstream-name’ could be taught about these implicit
> name conversions done for R, Python, Emacs, etc.?)
Maybe, but it requires to scrutinize importer per importer since
upstream name is mainly used by these, IIUC.
Cheers,
simon