diff options
author | Ludovic Courtès <ludo@gnu.org> | 2018-05-13 12:16:34 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2018-05-13 13:29:27 +0200 |
commit | 348987d3d12ebaf11fdbcc3dbd56585e7d69a1f5 (patch) | |
tree | 138044ff22c34749f7d408d6b699b2d603d46be1 /gnu/packages.scm | |
parent | 437f62f02a1b8c89b8ab39ecd53926489fac42db (diff) | |
download | guix-348987d3d12ebaf11fdbcc3dbd56585e7d69a1f5.tar.gz |
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?'.
Diffstat (limited to 'gnu/packages.scm')
-rw-r--r-- | gnu/packages.scm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/packages.scm b/gnu/packages.scm index 1a37a17342..7b954769e9 100644 --- a/gnu/packages.scm +++ b/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))))) |