mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 12:05:19 -06: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 @@ 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))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue