mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 03:55:08 -06: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 @@ when evaluated."
|
|||
;; 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…
Add table
Reference in a new issue