[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/06: store: Use 'write-bytevector' instead of hand-coded equivalent.
From: |
Ludovic Courtès |
Subject: |
06/06: store: Use 'write-bytevector' instead of hand-coded equivalent. |
Date: |
Thu, 4 May 2017 12:05:12 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 396d12faea2dcfeae2572818b55a00d90b4bd213
Author: Ludovic Courtès <address@hidden>
Date: Thu May 4 16:41:30 2017 +0200
store: Use 'write-bytevector' instead of hand-coded equivalent.
* guix/store.scm (process-stderr): Use 'write-bytevector' in the
%STDERR-READ case.
---
guix/store.scm | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/guix/store.scm b/guix/store.scm
index ee47703..b71c47b 100644
--- a/guix/store.scm
+++ b/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
- branch master updated (3e961de -> 396d12f), Ludovic Courtès, 2017/05/04
- 03/06: gnu: Add address@hidden, Ludovic Courtès, 2017/05/04
- 04/06: gnu: fish-guix: Adjust the home-page., Ludovic Courtès, 2017/05/04
- 06/06: store: Use 'write-bytevector' instead of hand-coded equivalent.,
Ludovic Courtès <=
- 02/06: tests: Use 'fold-module-public-variables' for discovery., Ludovic Courtès, 2017/05/04
- 05/06: store: Add store path computation procedures., Ludovic Courtès, 2017/05/04
- 01/06: nls: Mark (guix discovery) as translatable., Ludovic Courtès, 2017/05/04