import: pypi: Completely mute the output of the "unzip" command.
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>
Wed, 12 Jun 2019 02:36:39 +0000 (11:36 +0900)
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>
Tue, 2 Jul 2019 01:08:00 +0000 (10:08 +0900)
* guix/import/pypi.scm (guess-requirements): Completely mute the output of the
"unzip" command.

guix/import/pypi.scm

index d861dd9..23a1e69 100644 (file)
@@ -230,7 +230,10 @@ be extracted in a temporary directory."
            (metadata (string-append dirname "/METADATA")))
       (call-with-temporary-directory
        (lambda (dir)
-         (if (zero? (system* "unzip" "-q" wheel-archive "-d" dir metadata))
+         (if (zero?
+              (parameterize ((current-error-port (%make-void-port "rw+"))
+                             (current-output-port (%make-void-port "rw+")))
+                (system* "unzip" wheel-archive "-d" dir metadata)))
              (parse-wheel-metadata (string-append dir "/" metadata))
              (begin
                (warning