mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-10 15:10:37 +02:00
build: pack: Mute error output when checking if tar supports --sort.
* guix/build/pack.scm (tar-base-options) [tar-supports-sort?]: Redirect error output to void.
This commit is contained in:
@@ -27,8 +27,10 @@ deterministically. When TAR, a GNU tar command file name, is provided, the
|
||||
'(\"gzip\" \"-9n\"), is provided, the compressor is explicitly specified via
|
||||
the `-I' option."
|
||||
(define (tar-supports-sort? tar)
|
||||
(zero? (system* tar "cf" "/dev/null" "--files-from=/dev/null"
|
||||
"--sort=name")))
|
||||
(with-error-to-port (%make-void-port "w")
|
||||
(lambda ()
|
||||
(zero? (system* tar "cf" "/dev/null" "--files-from=/dev/null"
|
||||
"--sort=name")))))
|
||||
|
||||
`(,@(if compressor
|
||||
(list "-I" (string-join compressor))
|
||||
|
||||
Reference in New Issue
Block a user