mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
packages: 'find-packages-by-name' properly honors version prefixes.
Fixes <https://bugs.gnu.org/28446>. Reported by Mark H Weaver <mhw@netris.org>. * gnu/packages.scm (find-packages-by-name): Use 'version-prefix?' instead of 'string-prefix?'.
This commit is contained in:
parent
437f62f02a
commit
348987d3d1
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ (define find-packages-by-name
|
|||
version>?)))
|
||||
(if version
|
||||
(filter (lambda (package)
|
||||
(string-prefix? version (package-version package)))
|
||||
(version-prefix? version (package-version package)))
|
||||
matching)
|
||||
matching)))))
|
||||
|
||||
|
|
Loading…
Reference in a new issue