import/texlive: Only process description if it exists.

* guix/import/texlive.scm (tlpdb->package): Run beautify-description only when
the "longdesc" field exists.
This commit is contained in:
Ricardo Wurmus 2023-03-29 21:04:13 +02:00
parent 36f78676e5
commit 03a83c2906
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC

View File

@ -298,10 +298,9 @@ of those files are returned that are unexpectedly installed."
`((home-page ,(string-append "https://ctan.org" url)))))
'((home-page "https://www.tug.org/texlive/")))
(synopsis ,(assoc-ref data 'shortdesc))
(description ,(beautify-description
(assoc-ref data 'longdesc)))
(license ,(string->license
(assoc-ref data 'catalogue-license))))
(description ,(and=> (assoc-ref data 'longdesc) beautify-description))
filtered-depends)))
(define texlive->guix-package