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

* guix/import/pypi.scm (guess-requirements): Completely mute the output of the
"unzip" command.
master
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
1 changed files with 4 additions and 1 deletions

View 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