Commit 25c0ac60 authored by nanahira's avatar nanahira

fix

parent 8faadc89
Pipeline #5405 canceled with stages
in 2 minutes and 6 seconds
...@@ -218,6 +218,7 @@ export class PackagerService extends ConsoleLogger { ...@@ -218,6 +218,7 @@ export class PackagerService extends ConsoleLogger {
const archiveName = archiveTask.archiveFullPath; const archiveName = archiveTask.archiveFullPath;
await this.waitForLock(archiveTask.path); await this.waitForLock(archiveTask.path);
const existing = await this.s3.fileExists(archiveName); const existing = await this.s3.fileExists(archiveName);
try {
if (existing) { if (existing) {
archive.hash = await this.lookForExistingArchiveHash(archiveTask.path); archive.hash = await this.lookForExistingArchiveHash(archiveTask.path);
archive.size = existing.Size; archive.size = existing.Size;
...@@ -226,7 +227,7 @@ export class PackagerService extends ConsoleLogger { ...@@ -226,7 +227,7 @@ export class PackagerService extends ConsoleLogger {
} }
const files = archiveTask.filePaths; const files = archiveTask.filePaths;
this.log(`Packaging archive ${archiveName} with ${archiveTask.exactFilePaths.length} files.`); this.log(`Packaging archive ${archiveName} with ${archiveTask.exactFilePaths.length} files.`);
try {
const child = child_process.spawn('tar', ['--zstd', '-cf', '-'].concat(files), { const child = child_process.spawn('tar', ['--zstd', '-cf', '-'].concat(files), {
cwd: root, 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