Browse Source

store: Use 'write-bytevector' instead of hand-coded equivalent.

* guix/store.scm (process-stderr): Use 'write-bytevector' in the
%STDERR-READ case.
version-0.13.0
Ludovic Courtès 5 years ago
parent
commit
396d12faea
No known key found for this signature in database GPG Key ID: 90B11993D9AEBB5
  1. 4
      guix/store.scm

4
guix/store.scm

@ -581,9 +581,7 @@ encoding conversion errors."
(let* ((max-len (read-int p))
(data (make-bytevector max-len))
(len (get-bytevector-n! user-port data 0 max-len)))
(write-int len p)
(put-bytevector p data 0 len)
(write-padding len p)
(write-bytevector data p)
#f))
((= k %stderr-next)
;; Log a string. Build logs are usually UTF-8-encoded, but they

Loading…
Cancel
Save