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.
This commit is contained in:
parent
22f95a09eb
commit
a44fa3742c
1 changed files with 2 additions and 2 deletions
|
@ -679,8 +679,8 @@ (define graft?
|
|||
(_ #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 a new issue