Commit c9ae2964 authored by nanahira's avatar nanahira

fix

parent cde52c7e
Pipeline #40952 passed with stages
in 1 minute and 19 seconds
...@@ -314,14 +314,16 @@ export class PackagerService extends ConsoleLogger { ...@@ -314,14 +314,16 @@ export class PackagerService extends ConsoleLogger {
private async archiveProcess(root: string, archiveTask: ArchiveTask, retry = 0): Promise<Archive> { private async archiveProcess(root: string, archiveTask: ArchiveTask, retry = 0): Promise<Archive> {
const archive = archiveTask.archive; const archive = archiveTask.archive;
const archiveName = archiveTask.archiveFullPath; const archiveName = archiveTask.archiveFullPath;
const existing = await this.s3.fileExists(archiveName); if (!archiveTask.force) {
if (existing) { const existing = await this.s3.fileExists(archiveName);
const hash = await this.appService.lookForExistingArchiveHash(archiveTask.path); if (existing) {
if (hash) { const hash = await this.appService.lookForExistingArchiveHash(archiveTask.path);
archive.hash = hash; if (hash) {
archive.size = existing.ContentLength; archive.hash = hash;
this.log(`Archive ${archiveName} exists, skipping.`); archive.size = existing.ContentLength;
return archive; this.log(`Archive ${archiveName} exists, skipping.`);
return archive;
}
} }
} }
......
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