guix-commits
[Top][All Lists]
Advanced

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

01/03: guix build: Use 'warning' for warnings.


From: guix-commits
Subject: 01/03: guix build: Use 'warning' for warnings.
Date: Sun, 23 Jun 2019 13:53:10 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 0f2d9c3290c9094e036d5a160969b1690a576d14
Author: Ludovic Court├Ęs <address@hidden>
Date:   Sun Jun 23 19:18:32 2019 +0200

    guix build: Use 'warning' for warnings.
    
    * guix/scripts/build.scm (options->derivations): Use 'warning' instead
    of 'format'.
---
 guix/scripts/build.scm | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/guix/scripts/build.scm b/guix/scripts/build.scm
index 61ca4dc..74071d1 100644
--- a/guix/scripts/build.scm
+++ b/guix/scripts/build.scm
@@ -836,11 +836,9 @@ build."
            (#t
             (match (package-source p)
               (#f
-               (format (current-error-port)
-                       (G_ "~a: warning: \
-package '~a' has no source~%")
-                       (location->string (package-location p))
-                       (package-name p))
+               (warning (package-location p)
+                        (G_ "package '~a' has no source~%")
+                        (package-name p))
                '())
               (s
                (list (package-source-derivation store s)))))



reply via email to

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