Skip to content
Snippets Groups Projects
Unverified Commit e006f749 authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

build-system/guile: Display progress report as expected by (guix status).

* guix/build/guile-build-system.scm (report-build-progress): Use a
format string suitable for (guix status).
parent 30eb7383
No related branches found
No related tags found
No related merge requests found
...@@ -25,6 +25,7 @@ (define-module (guix build guile-build-system) ...@@ -25,6 +25,7 @@ (define-module (guix build guile-build-system)
#:use-module (ice-9 popen) #:use-module (ice-9 popen)
#:use-module (ice-9 rdelim) #:use-module (ice-9 rdelim)
#:use-module (ice-9 regex) #:use-module (ice-9 regex)
#:use-module (ice-9 format)
#:use-module (guix build utils) #:use-module (guix build utils)
#:export (target-guile-effective-version #:export (target-guile-effective-version
%standard-phases %standard-phases
...@@ -128,8 +129,8 @@ (define (fork-and-run-command command) ...@@ -128,8 +129,8 @@ (define (fork-and-run-command command)
(define* (report-build-progress total completed (define* (report-build-progress total completed
#:optional (log-port (current-error-port))) #:optional (log-port (current-error-port)))
"Report that COMPLETED out of TOTAL files have been completed." "Report that COMPLETED out of TOTAL files have been completed."
(format log-port "compiling...\t~5,1f% of ~d files~%" ;FIXME: i18n (format log-port "[~2d/~2d] Compiling...~%"
(* 100. (/ completed total)) total) completed total)
(force-output log-port)) (force-output log-port))
(define* (build #:key outputs inputs native-inputs (define* (build #:key outputs inputs native-inputs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment