From 348987d3d12ebaf11fdbcc3dbd56585e7d69a1f5 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Sun, 13 May 2018 12:16:34 +0200 Subject: packages: 'find-packages-by-name' properly honors version prefixes. Fixes . Reported by Mark H Weaver . * gnu/packages.scm (find-packages-by-name): Use 'version-prefix?' instead of 'string-prefix?'. --- gnu/packages.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))))) -- cgit 1.4.1