Commit 25c0ac60 authored by nanahira's avatar nanahira

fix

parent 8faadc89
Pipeline #5405 canceled with stages
in 2 minutes and 6 seconds
......@@ -218,15 +218,16 @@ export class PackagerService extends ConsoleLogger {
const archiveName = archiveTask.archiveFullPath;
await this.waitForLock(archiveTask.path);
const existing = await this.s3.fileExists(archiveName);
if (existing) {
archive.hash = await this.lookForExistingArchiveHash(archiveTask.path);
archive.size = existing.Size;
this.log(`Archive ${archiveName} exists, skipping.`);
return archive;
}
const files = archiveTask.filePaths;
this.log(`Packaging archive ${archiveName} with ${archiveTask.exactFilePaths.length} files.`);
try {
if (existing) {
archive.hash = await this.lookForExistingArchiveHash(archiveTask.path);
archive.size = existing.Size;
this.log(`Archive ${archiveName} exists, skipping.`);
return archive;
}
const files = archiveTask.filePaths;
this.log(`Packaging archive ${archiveName} with ${archiveTask.exactFilePaths.length} files.`);
const child = child_process.spawn('tar', ['--zstd', '-cf', '-'].concat(files), {
cwd: root,
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment