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