aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2019-06-02 21:07:24 +0200
committerLudovic Courtès <ludo@gnu.org>2019-06-02 22:01:34 +0200
commite006f7493feb35044f4965181c9199d9fdde1843 (patch)
tree0437114afadc7a8a99bc7eab6a2c0fa3df69dd67
parent30eb73836684ff8502063c43f3b315174e0d3a0b (diff)
downloadpatches-e006f7493feb35044f4965181c9199d9fdde1843.tar
patches-e006f7493feb35044f4965181c9199d9fdde1843.tar.gz
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).
-rw-r--r--guix/build/guile-build-system.scm5
1 files changed, 3 insertions, 2 deletions
diff --git a/guix/build/guile-build-system.scm b/guix/build/guile-build-system.scm
index eb7a91840e..32a431d347 100644
--- a/guix/build/guile-build-system.scm
+++ b/guix/build/guile-build-system.scm
@@ -25,6 +25,7 @@
#:use-module (ice-9 popen)
#:use-module (ice-9 rdelim)
#:use-module (ice-9 regex)
+ #:use-module (ice-9 format)
#:use-module (guix build utils)
#:export (target-guile-effective-version
%standard-phases
@@ -128,8 +129,8 @@ Raise an error if one of the processes exit with non-zero."
(define* (report-build-progress total completed
#:optional (log-port (current-error-port)))
"Report that COMPLETED out of TOTAL files have been completed."
- (format log-port "compiling...\t~5,1f% of ~d files~%" ;FIXME: i18n
- (* 100. (/ completed total)) total)
+ (format log-port "[~2d/~2d] Compiling...~%"
+ completed total)
(force-output log-port))
(define* (build #:key outputs inputs native-inputs