mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-15 15:37:54 -05:00
import: opam: Remove initial "v" in some version numbers.
* guix/import/opam.scm (opam-fetch): Remove initial "v" in some version numbers.
This commit is contained in:
parent
11d73fb412
commit
d3366a8ee8
1 changed files with 3 additions and 1 deletions
|
@ -238,7 +238,9 @@ (define (opam-fetch name)
|
|||
(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))
|
||||
|
|
Loading…
Reference in a new issue