me
/
guix
Archived
1
0
Fork 0

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?'.
master
Ludovic Courtès 2018-05-13 12:16:34 +02:00
parent 437f62f02a
commit 348987d3d1
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ decreasing version order."
version>?))) version>?)))
(if version (if version
(filter (lambda (package) (filter (lambda (package)
(string-prefix? version (package-version package))) (version-prefix? version (package-version package)))
matching) matching)
matching))))) matching)))))