import: pypi: Completely mute the output of the "unzip" command.

* guix/import/pypi.scm (guess-requirements): Completely mute the output of the
"unzip" command.
This commit is contained in:
Maxim Cournoyer 2019-06-12 11:36:39 +09:00
parent 73e8373060
commit f801c6215d
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -230,7 +230,10 @@ (define (read-wheel-metadata wheel-archive)
(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