import: opam: Do not crash when description is missing.
Previous 'guix import opam coccinelle' would crash due to the lack of a description. * guix/import/opam.scm (opam->guix-package): Call 'beautify-description' only when "description" metadata is available.
parent
9e4f1f8c33
commit
a8792bc796
|
@ -382,8 +382,8 @@ or #f on failure."
|
||||||
,(list 'quasiquote `((upstream-name . ,name))))))
|
,(list 'quasiquote `((upstream-name . ,name))))))
|
||||||
(home-page ,(metadata-ref opam-content "homepage"))
|
(home-page ,(metadata-ref opam-content "homepage"))
|
||||||
(synopsis ,(metadata-ref opam-content "synopsis"))
|
(synopsis ,(metadata-ref opam-content "synopsis"))
|
||||||
(description ,(beautify-description
|
(description ,(and=> (metadata-ref opam-content "description")
|
||||||
(metadata-ref opam-content "description")))
|
beautify-description))
|
||||||
(license ,(spdx-string->license
|
(license ,(spdx-string->license
|
||||||
(metadata-ref opam-content "license"))))
|
(metadata-ref opam-content "license"))))
|
||||||
(filter
|
(filter
|
||||||
|
|
Reference in New Issue