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.
This commit is contained in:
parent
d9721bcf27
commit
c91b368e96
@ -128,7 +128,9 @@ META."
|
||||
(string-append "perl-" (string-downcase name))))
|
||||
|
||||
(define version
|
||||
(assoc-ref meta "version"))
|
||||
(match (assoc-ref meta "version")
|
||||
((? number? vrs) (number->string vrs))
|
||||
((? string? vrs) vrs)))
|
||||
|
||||
(define core-module?
|
||||
(let ((perl-version (package-version perl))
|
||||
|
Loading…
Reference in New Issue
Block a user