all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH 1/3] import: hackage: Silence download output.
@ 2016-03-23  3:54 ericbavier
  2016-03-23  3:54 ` [PATCH 2/3] import: hackage: Factorize url synthesis ericbavier
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: ericbavier @ 2016-03-23  3:54 UTC (permalink / raw)
  To: guix-devel; +Cc: Eric Bavier

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

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-03-30 21:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-23  3:54 [PATCH 1/3] import: hackage: Silence download output ericbavier
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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.