summaryrefslogtreecommitdiff
path: root/guix/import/pypi.scm
diff options
context:
space:
mode:
authorEric Bavier <bavier@member.fsf.org>2016-12-04 22:42:49 -0600
committerEric Bavier <bavier@member.fsf.org>2016-12-12 22:22:02 -0600
commit63773200d7ac68fcaee6efd9ffe8ea7aa3fafa38 (patch)
treef933667cda574a939fc5728b09f6a795de752567 /guix/import/pypi.scm
parent7843f276d1c9c2b0c6b6a2c91ddd12500320945e (diff)
downloadgnu-guix-63773200d7ac68fcaee6efd9ffe8ea7aa3fafa38.tar
gnu-guix-63773200d7ac68fcaee6efd9ffe8ea7aa3fafa38.tar.gz
import: json: Silence json-fetch output.
* guix/import/json.scm (json-fetch): Use http-fetch instead of url-fetch to avoid writing to stdout and a temporary file for each invocation. * guix/import/gem.scm (rubygems-fetch): Do not redirect json-fetch output to /dev/null. * guix/import/pypi.scm (pypi-fetch): Likewise.
Diffstat (limited to 'guix/import/pypi.scm')
-rw-r--r--guix/import/pypi.scm10
1 files changed, 2 insertions, 8 deletions
diff --git a/guix/import/pypi.scm b/guix/import/pypi.scm
index 68153d5ab1..9794ff9757 100644
--- a/guix/import/pypi.scm
+++ b/guix/import/pypi.scm
@@ -51,14 +51,8 @@
(define (pypi-fetch name)
"Return an alist representation of the PyPI metadata for the package NAME,
or #f on failure."
- ;; XXX: We want to silence the download progress report, which is especially
- ;; annoying for 'guix refresh', but we have to use a file port.
- (call-with-output-file "/dev/null"
- (lambda (null)
- (with-error-to-port null
- (lambda ()
- (json-fetch (string-append "https://pypi.python.org/pypi/"
- name "/json")))))))
+ (json-fetch (string-append "https://pypi.python.org/pypi/"
+ name "/json")))
;; For packages found on PyPI that lack a source distribution.
(define-condition-type &missing-source-error &error