import/cpan: Maybe coerce version to string.
* guix/import/cpan.scm (cpan-module->sexp) <version>: Test if version in meta is string or number. If it is number, coerce to string.master
parent
d9721bcf27
commit
c91b368e96
|
@ -128,7 +128,9 @@ META."
|
||||||
(string-append "perl-" (string-downcase name))))
|
(string-append "perl-" (string-downcase name))))
|
||||||
|
|
||||||
(define version
|
(define version
|
||||||
(assoc-ref meta "version"))
|
(match (assoc-ref meta "version")
|
||||||
|
((? number? vrs) (number->string vrs))
|
||||||
|
((? string? vrs) vrs)))
|
||||||
|
|
||||||
(define core-module?
|
(define core-module?
|
||||||
(let ((perl-version (package-version perl))
|
(let ((perl-version (package-version perl))
|
||||||
|
|
Reference in New Issue