Skip to content

Commit

Permalink
Fixed no lock file was written when setting writeLock to true and exe…
Browse files Browse the repository at this point in the history
…cuteOperations to false
  • Loading branch information
Toflar authored and Seldaek committed Jan 22, 2017
1 parent f29a302 commit 0ea93df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Composer/Installer.php
Expand Up @@ -605,7 +605,7 @@ protected function doInstall($localRepo, $installedRepo, $platformRepo, $aliases
$this->eventDispatcher->dispatchPackageEvent(constant($event), $this->devMode, $policy, $pool, $installedRepo, $request, $operations, $operation);
}

if ($this->executeOperations) {
if ($this->executeOperations || $this->writeLock) {
$localRepo->write();
}
}
Expand Down

0 comments on commit 0ea93df

Please sign in to comment.