summaryrefslogtreecommitdiff
path: root/guix/scripts
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2019-06-23 19:18:32 +0200
committerLudovic Courtès <ludo@gnu.org>2019-06-23 19:53:03 +0200
commit0f2d9c3290c9094e036d5a160969b1690a576d14 (patch)
tree4af04a2e0fc13962657a95c4558e1cc8de85db8d /guix/scripts
parent258257acb02732897aacc73afa4f2392e429ad96 (diff)
guix build: Use 'warning' for warnings.
* guix/scripts/build.scm (options->derivations): Use 'warning' instead of 'format'.
Diffstat (limited to 'guix/scripts')
-rw-r--r--guix/scripts/build.scm8
1 files changed, 3 insertions, 5 deletions
diff --git a/guix/scripts/build.scm b/guix/scripts/build.scm
index 61ca4dca9f..74071d104b 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)))))