summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2019-06-12 11:36:39 +0900
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2019-07-02 10:08:00 +0900
commitf801c6215d8d5b2b21926d8cc41c0beb1f734108 (patch)
tree4b35032911cac924075f1d2c3b77e634cfa2c35e
parent73e83730607e34d5f89a7166fd1609342d954633 (diff)
downloadpatches-f801c6215d8d5b2b21926d8cc41c0beb1f734108.tar
patches-f801c6215d8d5b2b21926d8cc41c0beb1f734108.tar.gz
import: pypi: Completely mute the output of the "unzip" command.
* guix/import/pypi.scm (guess-requirements): Completely mute the output of the "unzip" command.
-rw-r--r--guix/import/pypi.scm5
1 files changed, 4 insertions, 1 deletions
diff --git a/guix/import/pypi.scm b/guix/import/pypi.scm
index d861dd960d..23a1e69061 100644
--- a/guix/import/pypi.scm
+++ b/guix/import/pypi.scm
@@ -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