guix build: Emit "nothing to do" warning only when needed.
This is a followup to 681af1fb78
.
* guix/scripts/build.scm (guix-build): Emit "nothing to do" warning only
when both DRV and ITEMS are null.
master
parent
22f95a09eb
commit
a44fa3742c
|
@ -679,8 +679,8 @@ needed."
|
||||||
(_ #f))
|
(_ #f))
|
||||||
opts)))
|
opts)))
|
||||||
|
|
||||||
(when (null? items)
|
(when (and (null? drv) (null? items))
|
||||||
(warning (G_ "no arguments specified, nothing to build~%")))
|
(warning (G_ "no arguments specified, nothing to do~%")))
|
||||||
|
|
||||||
(cond ((assoc-ref opts 'log-file?)
|
(cond ((assoc-ref opts 'log-file?)
|
||||||
;; Pass 'show-build-log' the output file names, not the
|
;; Pass 'show-build-log' the output file names, not the
|
||||||
|
|
Reference in New Issue