deploy: Use 'with-build-handler'.

Until now, 'guix deploy' would never display what is going to be built.

* guix/scripts/deploy.scm (guix-deploy): Wrap 'for-each' in
'with-build-handler'.
This commit is contained in:
Ludovic Courtès 2020-03-18 22:57:28 +01:00
parent 62195b9a8f
commit bdda46a67d
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -108,6 +108,8 @@ (define (handle-argument arg result)
(with-status-verbosity (assoc-ref opts 'verbosity)
(with-store store
(set-build-options-from-command-line store opts)
(with-build-handler (build-notifier #:use-substitutes?
(assoc-ref opts 'substitutes?))
(for-each (lambda (machine)
(info (G_ "deploying to ~a...~%")
(machine-display-name machine))
@ -123,4 +125,4 @@ (define (handle-argument arg result)
(run-with-store store (roll-back-machine machine)))
(apply throw (deploy-error-captured-args c))))
(run-with-store store (deploy-machine machine)))))
machines)))))
machines))))))