guix build: Use 'warning' for warnings.

* guix/scripts/build.scm (options->derivations): Use 'warning' instead
of 'format'.
This commit is contained in:
Ludovic Courtès 2019-06-23 19:18:32 +02:00
parent 258257acb0
commit 0f2d9c3290
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 3 additions and 5 deletions

View File

@ -836,10 +836,8 @@ build."
(#t
(match (package-source p)
(#f
(format (current-error-port)
(G_ "~a: warning: \
package '~a' has no source~%")
(location->string (package-location p))
(warning (package-location p)
(G_ "package '~a' has no source~%")
(package-name p))
'())
(s