mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-31 06:46:50 +01:00
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
1 changed files with 3 additions and 1 deletions
|
@ -128,7 +128,9 @@ (define (guix-name name)
|
|||
(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 a new issue