aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2018-05-13 12:16:34 +0200
committerLudovic Courtès <ludo@gnu.org>2018-05-13 13:29:27 +0200
commit348987d3d12ebaf11fdbcc3dbd56585e7d69a1f5 (patch)
tree138044ff22c34749f7d408d6b699b2d603d46be1
parent437f62f02a1b8c89b8ab39ecd53926489fac42db (diff)
downloadguix-348987d3d12ebaf11fdbcc3dbd56585e7d69a1f5.tar
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?'.
-rw-r--r--gnu/packages.scm2
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)))))