Skip to content
Snippets Groups Projects
Unverified Commit 348987d3 authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

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?'.
parent 437f62f0
No related branches found
No related tags found
No related merge requests found
......@@ -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)))))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment