Use the 2.2 'setvbuf' API style.
* bin/cuirass.in (main): Use the 2.2 'setvbuf' API style. * examples/guix-track-git.scm (current-error-port): Likewise.
This commit is contained in:
parent
2f37403606
commit
43be95c40a
|
@ -79,8 +79,8 @@ exec ${GUILE:-@GUILE@} --no-auto-compile -e main -s "$0" "$@"
|
|||
(define* (main #:optional (args (command-line)))
|
||||
|
||||
;; Always have stdout/stderr line-buffered.
|
||||
(setvbuf (current-output-port) _IOLBF)
|
||||
(setvbuf (current-error-port) _IOLBF)
|
||||
(setvbuf (current-output-port) 'line)
|
||||
(setvbuf (current-error-port) 'line)
|
||||
|
||||
(let ((opts (getopt-long args %options)))
|
||||
(parameterize
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
;;; guix-track-git.scm -- job specification tracking a guix packages's git
|
||||
;;; Copyright © 2012, 2013, 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2018 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2016 Mathieu Lirzin <mthl@gnu.org>
|
||||
;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
|
||||
;;;
|
||||
|
@ -71,7 +71,7 @@
|
|||
|
||||
;; XXX: Debugging hack: since `hydra-eval-guile-jobs' redirects the output
|
||||
;; port to the bit bucket, let us write to the error port instead.
|
||||
(setvbuf (current-error-port) _IOLBF)
|
||||
(setvbuf (current-error-port) 'line)
|
||||
(set-current-output-port (current-error-port))
|
||||
|
||||
(define (license->alist lcs)
|
||||
|
|
Loading…
Reference in New Issue