Tests fixes, audit progress, UI completions
This commit is contained in:
@@ -176,12 +176,14 @@ public sealed class AuditPackBuilder : IAuditPackBuilder
|
||||
await TarFile.CreateFromDirectoryAsync(sourceDir, tarPath, includeBaseDirectory: false, ct);
|
||||
|
||||
// Compress to tar.gz
|
||||
using var tarStream = File.OpenRead(tarPath);
|
||||
using var gzStream = File.Create(outputPath);
|
||||
using var gzip = new GZipStream(gzStream, CompressionLevel.Optimal);
|
||||
await tarStream.CopyToAsync(gzip, ct);
|
||||
using (var tarStream = File.OpenRead(tarPath))
|
||||
using (var gzStream = File.Create(outputPath))
|
||||
using (var gzip = new GZipStream(gzStream, CompressionLevel.Optimal))
|
||||
{
|
||||
await tarStream.CopyToAsync(gzip, ct);
|
||||
}
|
||||
|
||||
// Clean up uncompressed tar
|
||||
// Clean up uncompressed tar after streams are closed.
|
||||
File.Delete(tarPath);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user