Skip to content

Commit

Permalink
fix: tweak InstallFinish phase start
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjozork committed Sep 27, 2022
1 parent 24bcd08 commit 482f3b4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/install/fragmenter-installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,6 @@ export class FragmenterInstaller extends (EventEmitter as new () => TypedEventEm
newInstallManifest = await this.performModularUpdate(updateInfo);
}

this.ctx.currentPhase = { op: FragmenterOperation.InstallFinish };

return this.finishInstall(newInstallManifest);
}

Expand All @@ -187,6 +185,8 @@ export class FragmenterInstaller extends (EventEmitter as new () => TypedEventEm

await this.downloadAndInstallModule(fullModule, 0, updateInfo.distributionManifest.fullHash);

this.ctx.currentPhase = { op: FragmenterOperation.InstallFinish };

return {
...updateInfo.distributionManifest,
source: this.baseUrl,
Expand Down Expand Up @@ -314,6 +314,8 @@ export class FragmenterInstaller extends (EventEmitter as new () => TypedEventEm
moduleIndex++;
}

this.ctx.currentPhase = { op: FragmenterOperation.InstallFinish };

for (const module of updateInfo.unchangedModules) {
const newModule = updateInfo.distributionManifest.modules.find((m) => m.name === module.name);

Expand Down

0 comments on commit 482f3b4

Please sign in to comment.