Browse Source

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?'.
version-0.15.0
Ludovic Courtès 4 years ago
parent
commit
348987d3d1
No known key found for this signature in database GPG Key ID: 90B11993D9AEBB5
  1. 2
      gnu/packages.scm

2
gnu/packages.scm

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

Loading…
Cancel
Save