mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
status: Report grafting derivations specially.
* guix/status.scm (print-build-event): In 'build-started' event handler, check the properties of DRV and handle 'graft' derivations specially.
This commit is contained in:
parent
64fd1c01bc
commit
af1f1c38fb
1 changed files with 13 additions and 1 deletions
|
@ -325,7 +325,19 @@ (define print-log-line
|
|||
(display "\r" port)) ;erase the spinner
|
||||
(match event
|
||||
(('build-started drv . _)
|
||||
(format port (info (G_ "building ~a...")) drv)
|
||||
(let ((properties (derivation-properties
|
||||
(read-derivation-from-file drv))))
|
||||
(match (assq-ref properties 'type)
|
||||
('graft
|
||||
(let ((count (match (assq-ref properties 'graft)
|
||||
(#f 0)
|
||||
(lst (or (assq-ref lst 'count) 0)))))
|
||||
(format port (info (N_ "applying ~a graft for ~a..."
|
||||
"applying ~a grafts for ~a..."
|
||||
count))
|
||||
count drv)))
|
||||
(_
|
||||
(format port (info (G_ "building ~a...")) drv))))
|
||||
(newline port))
|
||||
(('build-succeeded drv . _)
|
||||
(when (or print-log? (not (extended-build-trace-supported?)))
|
||||
|
|
Loading…
Reference in a new issue