mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-01 09:02:59 -05:00
import/print: package->code: Fix branching.
* guix/import/print.scm (package->code)<license->code>: Branch on VAR, not on the SYMBOL-APPEND return value.
This commit is contained in:
parent
63ebc380a8
commit
649786f0cb
1 changed files with 2 additions and 1 deletions
|
@ -57,7 +57,8 @@ (define (variable-name val mod)
|
|||
;; Print either license variable name or the code for a license object
|
||||
(define (license->code lic)
|
||||
(let ((var (variable-name lic '(guix licenses))))
|
||||
(or (symbol-append 'license: var)
|
||||
(if var
|
||||
(symbol-append 'license: var)
|
||||
`(license
|
||||
(name ,(license-name lic))
|
||||
(uri ,(license-uri lic))
|
||||
|
|
Loading…
Reference in a new issue