Skip to content

Commit 5cd6971

Browse files
committed
stagingtool: fix checksums not being correctly copied
1 parent 090f431 commit 5cd6971

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stagingtool/source/app.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ struct Resource{
280280

281281
{
282282
auto file = File(resFile);
283-
resHash = digest!SHA1(file.byChunk(4096 * 1024)).toHexString();
283+
resHash = digest!SHA1(file.byChunk(4096 * 1024)).toHexString().idup;
284284
resSize = file.size().to!size_t;
285285
}
286286

@@ -295,7 +295,7 @@ struct Resource{
295295

296296
{
297297
auto file = File(dlFilePath);
298-
dlHash = digest!SHA1(file.byChunk(4096 * 1024)).toHexString();
298+
dlHash = digest!SHA1(file.byChunk(4096 * 1024)).toHexString().idup;
299299
dlSize = file.size().to!size_t;
300300
}
301301
}

0 commit comments

Comments
 (0)