mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-26 20:49:29 -05:00
docker: Hide scary-looking but harmless tar failure messages.
* guix/docker.scm (build-docker-image): Wrap "tar --delete" invocation in 'with-error-to-port'.
This commit is contained in:
parent
1fe1bb96f2
commit
d09ce3f91b
1 changed files with 7 additions and 2 deletions
|
@ -209,8 +209,13 @@ (define transformation-options
|
||||||
;; the path "/a" into "/". The presence of "/" in the archive is
|
;; the path "/a" into "/". The presence of "/" in the archive is
|
||||||
;; probably benign, but it is definitely safe to remove it, so let's
|
;; probably benign, but it is definitely safe to remove it, so let's
|
||||||
;; do that. This fails when "/" is not in the archive, so use system*
|
;; do that. This fails when "/" is not in the archive, so use system*
|
||||||
;; instead of invoke to avoid an exception in that case.
|
;; instead of invoke to avoid an exception in that case, and redirect
|
||||||
(system* "tar" "--delete" "/" "-f" "layer.tar")
|
;; stderr to the bit bucket to avoid "Exiting with failure status"
|
||||||
|
;; error messages.
|
||||||
|
(with-error-to-port (%make-void-port "w")
|
||||||
|
(lambda ()
|
||||||
|
(system* "tar" "--delete" "/" "-f" "layer.tar")))
|
||||||
|
|
||||||
(for-each delete-file-recursively
|
(for-each delete-file-recursively
|
||||||
(map (compose topmost-component symlink-source)
|
(map (compose topmost-component symlink-source)
|
||||||
symlinks))
|
symlinks))
|
||||||
|
|
Loading…
Reference in a new issue