packages: ‘sanitize-inputs’ does not add labels when unnecessary.
Fixes a bug introduced in 402d0a9b9d
whereby labels would be added in cases like:
(inputs (list `("label" ,whatever)))
This idiom is found for example in the ‘nmon’ package.
* guix/packages.scm (add-input-labels): Call ‘maybe-add-input-labels’
instead of (map add-input-label …).
Change-Id: I3e86d4607f19482a4e461ef8e7a20cde2a41ead7
master
parent
ef8ab6ab66
commit
49232eff56
|
@ -439,8 +439,9 @@ from forcing GEXP-PROMISE."
|
|||
(else (map add-input-label inputs))))
|
||||
|
||||
(define (add-input-labels . inputs)
|
||||
"Add labels to all of INPUTS."
|
||||
(map add-input-label inputs))
|
||||
"Add labels to all of INPUTS if needed (this is the rest-argument version of
|
||||
'maybe-add-input-labels')."
|
||||
(maybe-add-input-labels inputs))
|
||||
|
||||
(define-syntax sanitize-inputs
|
||||
;; This is written as a macro rather than as a 'define-inlinable' procedure
|
||||
|
|
Reference in New Issue