From: ericbavier@openmailbox.org
To: guix-devel@gnu.org
Cc: Eric Bavier <bavier@member.fsf.org>
Subject: [PATCH 1/3] import: hackage: Silence download output.
Date: Tue, 22 Mar 2016 22:54:27 -0500 [thread overview]
Message-ID: <1458705269-31766-1-git-send-email-ericbavier@openmailbox.org> (raw)
From: Eric Bavier <bavier@member.fsf.org>
* guix/import/hackage.scm (hackage-fetch): Send error output from
url-fetch to /dev/null.
---
guix/import/hackage.scm | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/guix/import/hackage.scm b/guix/import/hackage.scm
index 8725ffa..9401830 100644
--- a/guix/import/hackage.scm
+++ b/guix/import/hackage.scm
@@ -82,9 +82,14 @@ version."
name "-" version "/" name ".cabal")
(string-append "http://hackage.haskell.org/package/"
name "/" name ".cabal"))))
+ ;; 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-temporary-output-file
(lambda (temp port)
- (and (url-fetch url temp)
+ (and (call-with-output-file "/dev/null"
+ (lambda (null)
+ (with-error-to-port null
+ (lambda () (url-fetch url temp)))))
(call-with-input-file temp
(compose read-cabal canonical-newline-port)))))))
--
2.7.3
next reply other threads:[~2016-03-23 3:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-23 3:54 ericbavier [this message]
2016-03-23 3:54 ` [PATCH 2/3] import: hackage: Factorize url synthesis ericbavier
2016-03-28 16:08 ` Ludovic Courtès
2016-03-23 3:54 ` [PATCH 3/3] import: Add Hackage updater ericbavier
2016-03-28 16:12 ` Ludovic Courtès
2016-03-30 1:53 ` Eric Bavier
2016-03-30 21:16 ` Ludovic Courtès
2016-03-28 16:07 ` [PATCH 1/3] import: hackage: Silence download output Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1458705269-31766-1-git-send-email-ericbavier@openmailbox.org \
--to=ericbavier@openmailbox.org \
--cc=bavier@member.fsf.org \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).