environment: Suppress all output with --verbosity=0

* guix/scripts/environment.scm (guix-environment*): Call
'with-status-verbosity' earlier.

Fixes: <https://issues.guix.gnu.org/71298>
Change-Id: I69c7dd1058b44d587312d957312a130a8703cfca
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Brian Kubisiak 2024-11-29 07:08:28 -08:00 committed by Ludovic Courtès
parent a34c9713e2
commit 3e096a6bab
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -1140,8 +1140,8 @@ (define-syntax-rule (with-store/maybe store exp ...)
(when (pair? symlinks)
(leave (G_ "'--symlink' cannot be used without '--container'~%"))))
(with-store/maybe store
(with-status-verbosity (assoc-ref opts 'verbosity)
(with-status-verbosity (assoc-ref opts 'verbosity)
(with-store/maybe store
(define manifest-from-opts
(options/resolve-packages store opts))