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 {
private async archiveProcess(root: string, archiveTask: ArchiveTask, retry = 0): Promise<Archive> {
const archive = archiveTask.archive;
const archiveName = archiveTask.archiveFullPath;
const existing = await this.s3.fileExists(archiveName);
if (existing) {
const hash = await this.appService.lookForExistingArchiveHash(archiveTask.path);
if (hash) {
archive.hash = hash;
archive.size = existing.ContentLength;
this.log(`Archive ${archiveName} exists, skipping.`);
return archive;
if (!archiveTask.force) {
const existing = await this.s3.fileExists(archiveName);
if (existing) {
const hash = await this.appService.lookForExistingArchiveHash(archiveTask.path);
if (hash) {
archive.hash = hash;
archive.size = existing.ContentLength;
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