[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/07: ui: 'show-what-to-build' displays download estimate more prominen
From: |
guix-commits |
Subject: |
07/07: ui: 'show-what-to-build' displays download estimate more prominently. |
Date: |
Mon, 14 Sep 2020 09:43:29 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 846403ef62066b23c87b6f8a99fd8a551001fc52
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Mon Sep 14 15:16:59 2020 +0200
ui: 'show-what-to-build' displays download estimate more prominently.
* guix/ui.scm (show-what-to-build): When VERBOSITY is 1, add a newline
before the "would/will be downloaded" line, and wrap that message in
'highlight'.
---
guix/ui.scm | 22 ++++++++++++++--------
1 file changed, 14 insertions(+), 8 deletions(-)
diff --git a/guix/ui.scm b/guix/ui.scm
index 115d980..ecaf975 100644
--- a/guix/ui.scm
+++ b/guix/ui.scm
@@ -1075,16 +1075,19 @@ summary, and level 0 shows nothing."
(null? hook) (map colorized-store-item hook)))
((= verbosity 1)
;; Display the bare minimum; don't mention grafts and hooks.
+ (unless (null? build)
+ (newline (current-error-port)))
(if display-download-size?
(format (current-error-port)
;; TRANSLATORS: "MB" is for "megabyte"; it should
be
;; translated to the corresponding abbreviation.
- (G_ "~:[~,1h MB would be downloaded~%~;~]")
+ (highlight (G_ "~:[~,1h MB would be
downloaded~%~;~]"))
(null? download) download-size)
(format (current-error-port)
- (N_ "~:[~h item would be downloaded~%~;~]"
- "~:[~h items would be downloaded~%~;~]"
- (length download))
+ (highlight
+ (N_ "~:[~h item would be downloaded~%~;~]"
+ "~:[~h items would be downloaded~%~;~]"
+ (length download)))
(null? download) (length download))))))
(begin
@@ -1123,16 +1126,19 @@ summary, and level 0 shows nothing."
(null? hook) (map colorized-store-item hook)))
((= verbosity 1)
;; Display the bare minimum; don't mention grafts and hooks.
+ (unless (null? build)
+ (newline (current-error-port)))
(if display-download-size?
(format (current-error-port)
;; TRANSLATORS: "MB" is for "megabyte"; it should
be
;; translated to the corresponding abbreviation.
- (G_ "~:[~,1h MB will be downloaded~%~;~]")
+ (highlight (G_ "~:[~,1h MB will be
downloaded~%~;~]"))
(null? download) download-size)
(format (current-error-port)
- (N_ "~:[~h item will be downloaded~%~;~]"
- "~:[~h items will be downloaded~%~;~]"
- (length download))
+ (highlight
+ (N_ "~:[~h item will be downloaded~%~;~]"
+ "~:[~h items will be downloaded~%~;~]"
+ (length download)))
(null? download) (length download)))))))
(check-available-space installed-size)
- branch master updated (735808b -> 846403e), guix-commits, 2020/09/14
- 03/07: daemon: Move 'Agent' to libutil., guix-commits, 2020/09/14
- 01/07: daemon: Generalize 'HookInstance' to 'Agent'., guix-commits, 2020/09/14
- 02/07: daemon: Isolate signing and signature verification functions., guix-commits, 2020/09/14
- 04/07: daemon: Spawn 'guix authenticate' once for all., guix-commits, 2020/09/14
- 05/07: authenticate: Cache the ACL and key pairs., guix-commits, 2020/09/14
- 06/07: tests: Remove one 'delete-paths' call in 'tests/store.scm'., guix-commits, 2020/09/14
- 07/07: ui: 'show-what-to-build' displays download estimate more prominently.,
guix-commits <=