mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05:00
import: cpan: Drop "v" prefix from version strings.
Fixes <https://bugs.gnu.org/30641>. Reported by Oleg Pykhalov <go.wigust@gmail.com>. * guix/import/cpan.scm (cpan-version): Drop the "v" prefix when it is there.
This commit is contained in:
parent
35e2d0cfae
commit
b402f4ee34
1 changed files with 5 additions and 1 deletions
|
@ -131,7 +131,11 @@ (define (cpan-version meta)
|
|||
;; version is sometimes not quoted in the module json, so it gets
|
||||
;; imported into Guile as a number, so convert it to a string.
|
||||
(number->string version))
|
||||
(version version)))
|
||||
(version
|
||||
;; Sometimes we get a "v" prefix. Strip it.
|
||||
(if (string-prefix? "v" version)
|
||||
(string-drop version 1)
|
||||
version))))
|
||||
|
||||
(define (perl-package)
|
||||
"Return the 'perl' package. This is a lazy reference so that we don't
|
||||
|
|
Loading…
Reference in a new issue