guix system: Call 'export-graph' with the right port argument.

* guix/scripts/system.scm (export-extension-graph)
(export-shepherd-graph): Honor PORT.
This commit is contained in:
Ludovic Courtès 2022-03-18 14:46:00 +01:00
parent 25261cbf96
commit 322707bc7f
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -897,7 +897,7 @@ (define* (export-extension-graph os port
(system (find (lambda (service)
(eq? (service-kind service) system-service-type))
services)))
(export-graph (list system) (current-output-port)
(export-graph (list system) port
#:backend backend
#:node-type (service-node-type services)
#:reverse-edges? #t)))
@ -913,7 +913,7 @@ (define* (export-shepherd-graph os port
(sinks (filter (lambda (service)
(null? (shepherd-service-requirement service)))
shepherds)))
(export-graph sinks (current-output-port)
(export-graph sinks port
#:backend backend
#:node-type (shepherd-service-node-type shepherds)
#:reverse-edges? #t)))