mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
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.
This commit is contained in:
parent
9e4f1f8c33
commit
a8792bc796
1 changed files with 2 additions and 2 deletions
|
@ -382,8 +382,8 @@ (define* (opam->guix-package name #:key (repo 'opam) version #:allow-other-keys)
|
|||
,(list 'quasiquote `((upstream-name . ,name))))))
|
||||
(home-page ,(metadata-ref opam-content "homepage"))
|
||||
(synopsis ,(metadata-ref opam-content "synopsis"))
|
||||
(description ,(beautify-description
|
||||
(metadata-ref opam-content "description")))
|
||||
(description ,(and=> (metadata-ref opam-content "description")
|
||||
beautify-description))
|
||||
(license ,(spdx-string->license
|
||||
(metadata-ref opam-content "license"))))
|
||||
(filter
|
||||
|
|
Loading…
Reference in a new issue