status: Do not pass a non-literal format string to 'format'.

* guix/status.scm (print-build-event): Use 'display' instead of 'format'
for hooks.
This commit is contained in:
Ludovic Courtès 2022-02-10 23:02:43 +01:00
parent 086813f63c
commit 5d4d8d83e4
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5

View File

@ -503,7 +503,7 @@ substitutes being downloaded."
(let ((hook-type (assq-ref properties 'hook)))
(or (and=> (hook-message hook-type)
(lambda (msg)
(format port (info msg))))
(display (info msg) port)))
(format port (info (G_ "running profile hook of type '~a'..."))
hook-type))))
(_