Commit 6117d942 authored by nanahira's avatar nanahira

don't roll out part package

parent 876560a3
Pipeline #4986 passed with stages
in 2 minutes and 45 seconds
...@@ -6,14 +6,12 @@ import util from 'util'; ...@@ -6,14 +6,12 @@ import util from 'util';
import _ from 'lodash'; import _ from 'lodash';
import { ConfigService } from '@nestjs/config'; import { ConfigService } from '@nestjs/config';
import internal, { Stream } from 'stream';
import { PackageResult } from '../dto/PackageResult.dto'; import { PackageResult } from '../dto/PackageResult.dto';
import { PackageS3Service } from '../package-s3/package-s3.service'; import { PackageS3Service } from '../package-s3/package-s3.service';
import readdirp from 'readdirp'; import readdirp from 'readdirp';
import { ConsoleLogger, forwardRef, Inject, Injectable } from '@nestjs/common'; import { ConsoleLogger, forwardRef, Inject, Injectable } from '@nestjs/common';
import { Archive, ArchiveType } from '../entities/Archive.entity'; import { Archive, ArchiveType } from '../entities/Archive.entity';
import { Build } from '../entities/Build.entity';
import { AppService } from '../app.service'; import { AppService } from '../app.service';
import { createHash } from 'crypto'; import { createHash } from 'crypto';
import { ArchiveFile } from '../entities/ArchiveFile.entity'; import { ArchiveFile } from '../entities/ArchiveFile.entity';
...@@ -53,7 +51,7 @@ export class ArchiveTask { ...@@ -53,7 +51,7 @@ export class ArchiveTask {
} }
addToTask(archiveTasks: ArchiveTask[]) { addToTask(archiveTasks: ArchiveTask[]) {
if (archiveTasks.some((t) => t.path === this.path)) { if (this.role !== ArchiveType.Part && archiveTasks.some((t) => t.path === this.path)) {
return; return;
} }
archiveTasks.push(this); archiveTasks.push(this);
......
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