From d3366a8ee8cec53cfb982855aaeb30244d3f1aa2 Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Wed, 4 Sep 2019 21:01:04 +0200 Subject: import: opam: Remove initial "v" in some version numbers. * guix/import/opam.scm (opam-fetch): Remove initial "v" in some version numbers. --- guix/import/opam.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/guix/import/opam.scm b/guix/import/opam.scm index 5dcc0e97a3..7c533a4b4e 100644 --- a/guix/import/opam.scm +++ b/guix/import/opam.scm @@ -238,7 +238,9 @@ path to the repository." (version (find-latest-version name repository)) (file (string-append repository "/packages/" name "/" name "." version "/opam"))) `(("metadata" ,@(get-metadata file)) - ("version" . ,version)))) + ("version" . ,(if (string-prefix? "v" version) + (substring version 1) + version))))) (define (opam->guix-package name) (and-let* ((opam-file (opam-fetch name)) -- cgit v1.2.3