Browse Source

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.
version-0.12.0
Alex Sassmannshausen 6 years ago
parent
commit
c91b368e96
No known key found for this signature in database GPG Key ID: 8BC4F4476E8A8E00
  1. 4
      guix/import/cpan.scm

4
guix/import/cpan.scm

@ -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…
Cancel
Save