import: utils: 'alist->package' allows false license.
authorLudovic Courtès <ludo@gnu.org>
Fri, 16 Feb 2018 10:06:31 +0000 (11:06 +0100)
committerLudovic Courtès <ludo@gnu.org>
Fri, 16 Feb 2018 10:10:12 +0000 (11:10 +0100)
commit5e2495d09e5ad78f8ebb6bfa6fb4ff09fb305ec4
treea25e08f2cf2d0910ec0371f46132edad10b265ec
parent469069b6e8e05a46e5fd52f1afa1102d2bb1d927
import: utils: 'alist->package' allows false license.

Reported by <pkill9@runbox.com>.
Fixes <https://bugs.gnu.org/30470>.

* guix/import/utils.scm (alist->package): Check whether 'license' is
false and set the 'license' field to #f in this case.
* tests/import-utils.scm ("alist->package with false license"): New
test.
guix/import/utils.scm
tests/import-utils.scm