import: cran: Ignore invalid packages from the system requirements.

* guix/import/cran.scm (description->package): Filter invalid packages from
the list of system requirements.
This commit is contained in:
Ricardo Wurmus 2019-05-28 23:56:59 +02:00
parent e4519ee73d
commit 531940d388
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -313,7 +313,9 @@ (define (description->package repository meta)
(tarball (download source-url))
(sysdepends (append
(if (needs-zlib? tarball) '("zlib") '())
(map string-downcase (listify meta "SystemRequirements"))))
(filter (lambda (name)
(not (member name invalid-packages)))
(map string-downcase (listify meta "SystemRequirements")))))
(propagate (filter (lambda (name)
(not (member name (append default-r-packages
invalid-packages))))