[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/08: import: pypi: Make downloads silent.
From: |
Ludovic Courtès |
Subject: |
07/08: import: pypi: Make downloads silent. |
Date: |
Tue, 03 Nov 2015 23:12:40 +0000 |
civodul pushed a commit to branch master
in repository guix.
commit 32728adb958560268b793b4a3e48d94111b5ed2d
Author: Ludovic Courtès <address@hidden>
Date: Wed Nov 4 00:08:30 2015 +0100
import: pypi: Make downloads silent.
* guix/import/pypi.scm (pypi-fetch): Wrap body in
'call-with-output-file' and 'with-error-to-port'.
---
guix/import/pypi.scm | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/guix/import/pypi.scm b/guix/import/pypi.scm
index f58efd9..7ca0cc9 100644
--- a/guix/import/pypi.scm
+++ b/guix/import/pypi.scm
@@ -45,7 +45,14 @@
(define (pypi-fetch name)
"Return an alist representation of the PyPI metadata for the package NAME,
or #f on failure."
- (json-fetch (string-append "https://pypi.python.org/pypi/" name "/json")))
+ ;; 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")))))))
(define (latest-source-release pypi-package)
"Return the latest source release for PYPI-PACKAGE."
- branch master updated (d431b23 -> f856fcb), Ludovic Courtès, 2015/11/03
- 01/08: doc: Explain that 'guix publish' relies on the key pair., Ludovic Courtès, 2015/11/03
- 03/08: Update NEWS., Ludovic Courtès, 2015/11/03
- 02/08: gnu: cmake: Download over HTTPS., Ludovic Courtès, 2015/11/03
- 04/08: gnu: guile-ncurses: Mask test failure with ncurses 6.0., Ludovic Courtès, 2015/11/03
- 06/08: import: pypi: Add missing copyright line., Ludovic Courtès, 2015/11/03
- 07/08: import: pypi: Make downloads silent.,
Ludovic Courtès <=
- 05/08: doc: Fix typos., Ludovic Courtès, 2015/11/03
- 08/08: build-system/python: 'package-with-python2' preserves source location., Ludovic Courtès, 2015/11/03