guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/12: guix build: Emit "nothing to do" warning only when needed.


From: guix-commits
Subject: 03/12: guix build: Emit "nothing to do" warning only when needed.
Date: Fri, 28 May 2021 17:05:10 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit a44fa3742c34a017d1a9a06c45c03f429614e584
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Fri May 28 22:09:58 2021 +0200

    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.
---
 guix/scripts/build.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/guix/scripts/build.scm b/guix/scripts/build.scm
index f2b8ca1..97e2f5a 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]