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,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)))))