civodul pushed a commit to branch master
in repository guix.

commit 348987d3d12ebaf11fdbcc3dbd56585e7d69a1f5
Author: Ludovic Courtès <l...@gnu.org>
Date:   Sun May 13 12:16:34 2018 +0200

    packages: 'find-packages-by-name' properly honors version prefixes.
    
    Fixes <https://bugs.gnu.org/28446>.
    Reported by Mark H Weaver <m...@netris.org>.
    
    * 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 1a37a17..7b95476 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)))))
 

Reply via email to