substitute: Do not display the installed size.
* guix/scripts/substitute.scm (process-substitution): Do not show the installed size in the "Downloading" message.
This commit is contained in:
parent
dcfc6f213b
commit
36a9d3f10d
|
@ -874,15 +874,7 @@ DESTINATION as a nar file. Verify the substitute against ACL."
|
||||||
(format #t "~a~%" (narinfo-hash narinfo))
|
(format #t "~a~%" (narinfo-hash narinfo))
|
||||||
|
|
||||||
(format (current-error-port)
|
(format (current-error-port)
|
||||||
;; TRANSLATORS: The second part of this message looks like
|
(G_ "Downloading ~a...~%") (uri->string uri))
|
||||||
;; "(4.1MiB installed)"; it shows the size of the package once
|
|
||||||
;; installed.
|
|
||||||
(G_ "Downloading ~a~:[~*~; (~a installed)~]...~%")
|
|
||||||
(uri->string uri)
|
|
||||||
;; Use the Nar size as an estimate of the installed size.
|
|
||||||
(narinfo-size narinfo)
|
|
||||||
(and=> (narinfo-size narinfo)
|
|
||||||
(cute byte-count->string <>)))
|
|
||||||
(let*-values (((raw download-size)
|
(let*-values (((raw download-size)
|
||||||
;; Note that Hydra currently generates Nars on the fly
|
;; Note that Hydra currently generates Nars on the fly
|
||||||
;; and doesn't specify a Content-Length, so
|
;; and doesn't specify a Content-Length, so
|
||||||
|
|
Loading…
Reference in New Issue