guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: utils: Fix handling of shell arguments for xz compression.


From: Leo Famulari
Subject: 01/01: utils: Fix handling of shell arguments for xz compression.
Date: Mon, 3 Apr 2017 23:24:56 -0400 (EDT)

lfam pushed a commit to branch master
in repository guix.

commit 6c17422eace097aceac4b5994f0343bcbed6e3ab
Author: Leo Famulari <address@hidden>
Date:   Mon Apr 3 23:15:29 2017 -0400

    utils: Fix handling of shell arguments for xz compression.
    
    Fixes test failures related to xz compression in tests/utils.scm.
    
    This is a followup to commit 63102406f22412bb922de5549deb89d3594a38c0.
    
    * guix/utils.scm (decompressed-port, compressed-port, 
compressed-output-port):
    Split each shell argument into its own list element.
---
 guix/utils.scm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/guix/utils.scm b/guix/utils.scm
index fb962df..3fefa49 100644
--- a/guix/utils.scm
+++ b/guix/utils.scm
@@ -155,7 +155,7 @@ a symbol such as 'xz."
   (match compression
     ((or #f 'none) (values input '()))
     ('bzip2        (filtered-port `(,%bzip2 "-dc") input))
-    ('xz           (filtered-port `(,%xz "-dc -T0") input))
+    ('xz           (filtered-port `(,%xz "-dc" "-T0") input))
     ('gzip         (filtered-port `(,%gzip "-dc") input))
     (else          (error "unsupported compression scheme" compression))))
 
@@ -165,7 +165,7 @@ a symbol such as 'xz."
   (match compression
     ((or #f 'none) (values input '()))
     ('bzip2        (filtered-port `(,%bzip2 "-c") input))
-    ('xz           (filtered-port `(,%xz "-c -T0") input))
+    ('xz           (filtered-port `(,%xz "-c" "-T0") input))
     ('gzip         (filtered-port `(,%gzip "-c") input))
     (else          (error "unsupported compression scheme" compression))))
 
@@ -222,7 +222,7 @@ program--e.g., '(\"--fast\")."
   (match compression
     ((or #f 'none) (values output '()))
     ('bzip2        (filtered-output-port `(,%bzip2 "-c" ,@options) output))
-    ('xz           (filtered-output-port `(,%xz "-c -T0" ,@options) output))
+    ('xz           (filtered-output-port `(,%xz "-c" "-T0" ,@options) output))
     ('gzip         (filtered-output-port `(,%gzip "-c" ,@options) output))
     (else          (error "unsupported compression scheme" compression))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]