summaryrefslogtreecommitdiff
path: root/guix/scripts/build.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2021-05-28 22:09:58 +0200
committerLudovic Courtès <ludo@gnu.org>2021-05-28 23:04:43 +0200
commita44fa3742c34a017d1a9a06c45c03f429614e584 (patch)
treec2b8dcf13fc1891dd5456eb62738bfce1f218ae7 /guix/scripts/build.scm
parent22f95a09eb9f136e59e2c2588a2c28a449155202 (diff)
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.
Diffstat (limited to 'guix/scripts/build.scm')
-rw-r--r--guix/scripts/build.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/guix/scripts/build.scm b/guix/scripts/build.scm
index f2b8ca135e..97e2f5a167 100644
--- a/guix/scripts/build.scm
+++ b/guix/scripts/build.scm
@@ -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