status: Erase the progress bar or spinner.
Previously the progress bar wouldn't be erased by the time the next "building foo" line would be printed. * guix/status.scm (print-build-event)[erase-current-line*]: New procedure. Call it instead of (display "\r").
This commit is contained in:
parent
3869effdd5
commit
7473bce207
|
@ -465,8 +465,15 @@ addition to build events."
|
|||
(_
|
||||
(spin! port))))))
|
||||
|
||||
(define erase-current-line*
|
||||
(if (isatty?* port)
|
||||
(lambda (port)
|
||||
(erase-current-line port)
|
||||
(force-output port))
|
||||
(const #t)))
|
||||
|
||||
(unless print-log?
|
||||
(display "\r" port)) ;erase the spinner
|
||||
(erase-current-line* port)) ;clear the spinner or progress bar
|
||||
(match event
|
||||
(('build-started drv . _)
|
||||
(let ((properties (derivation-properties
|
||||
|
|
Loading…
Reference in New Issue