mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
offload: Warn about the lack of zlib support.
* guix/scripts/offload.scm (guix-offload): Print a warning when 'zlib-support?' returns false.
This commit is contained in:
parent
f3cf860635
commit
0b72475301
1 changed files with 7 additions and 0 deletions
|
@ -24,6 +24,7 @@ (define-module (guix scripts offload)
|
|||
#:use-module (ssh popen)
|
||||
#:use-module (ssh dist)
|
||||
#:use-module (ssh dist node)
|
||||
#:use-module (ssh version)
|
||||
#:use-module (guix config)
|
||||
#:use-module (guix records)
|
||||
#:use-module (guix store)
|
||||
|
@ -634,6 +635,12 @@ (define not-coma
|
|||
(and=> (passwd:dir (getpw (getuid)))
|
||||
(cut setenv "HOME" <>))
|
||||
|
||||
;; We rely on protocol-level compression from libssh to optimize large data
|
||||
;; transfers. Warn if it's missing.
|
||||
(unless (zlib-support?)
|
||||
(warning (_ "Guile-SSH lacks zlib support"))
|
||||
(warning (_ "data transfers will *not* be compressed!")))
|
||||
|
||||
(match args
|
||||
((system max-silent-time print-build-trace? build-timeout)
|
||||
(let ((max-silent-time (string->number max-silent-time))
|
||||
|
|
Loading…
Reference in a new issue