[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#32837] [PATCH 1/5] progress: 'progress-reporter-report!' takes any
From: |
Ludovic Courtès |
Subject: |
[bug#32837] [PATCH 1/5] progress: 'progress-reporter-report!' takes any number of arguments. |
Date: |
Tue, 25 Sep 2018 17:32:20 +0200 |
* guix/progress.scm (progress-reporter-report!): Accept an arbitrary
number of arguments and pass them to REPORT.
---
guix/progress.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/guix/progress.scm b/guix/progress.scm
index c9c3cd12a..53aea1c56 100644
--- a/guix/progress.scm
+++ b/guix/progress.scm
@@ -70,11 +70,11 @@ stopped."
(($ <progress-reporter> start report stop)
(start))))
-(define (progress-reporter-report! reporter)
+(define (progress-reporter-report! reporter . args)
"Low-level procedure to lead REPORTER to emit a report."
(match reporter
(($ <progress-reporter> start report stop)
- (report))))
+ (apply report args))))
(define (stop-progress-reporter! reporter)
"Low-level procedure to stop REPORTER."
--
2.19.0
- [bug#32837] [PATCH 0/5] Improvements to the UI with colors, Ludovic Courtès, 2018/09/25
- [bug#32837] [PATCH 1/5] progress: 'progress-reporter-report!' takes any number of arguments.,
Ludovic Courtès <=
- [bug#32837] [PATCH 5/5] perform-download: Optionally report a "download-progress" trace., Ludovic Courtès, 2018/09/25
- [bug#32837] [PATCH 2/5] substitute: Progress port really closes underlying port., Ludovic Courtès, 2018/09/25
- [bug#32837] [PATCH 4/5] Add (guix status) and use it for pretty colored output., Ludovic Courtès, 2018/09/25
- [bug#32837] [PATCH 3/5] progress: Add 'display-download-progress'., Ludovic Courtès, 2018/09/25
- [bug#32837] [PATCH 1/5] progress: 'progress-reporter-report!' takes any number of arguments., Danny Milosavljevic, 2018/09/26
- [bug#32837] [PATCH 0/5] Improvements to the UI with colors, Ludovic Courtès, 2018/09/27