mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
de753c64f9
Upstream PR: https://github.com/NixOS/hydra/pull/840
19 lines
678 B
Diff
19 lines
678 B
Diff
Update for https://github.com/NixOS/nix/commit/faa31f40
|
|
|
|
--- a/src/hydra-queue-runner/nar-extractor.cc
|
|
+++ b/src/hydra-queue-runner/nar-extractor.cc
|
|
@@ -48,9 +48,9 @@
|
|
- void receiveContents(unsigned char * data, size_t len) override
|
|
+ void receiveContents(std::string_view data) override
|
|
{
|
|
assert(expectedSize);
|
|
assert(curMember);
|
|
assert(hashSink);
|
|
- *curMember->fileSize += len;
|
|
- (*hashSink)(data, len);
|
|
+ *curMember->fileSize += data.size();
|
|
+ (*hashSink)(data);
|
|
if (curMember->contents) {
|
|
- curMember->contents->append((char *) data, len);
|
|
+ curMember->contents->append(data);
|