Browse Source

Fixed no lock file was written when setting writeLock to true and executeOperations to false

Yanick Witschi 8 years ago
parent
commit
0ea93df252
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Composer/Installer.php

+ 1 - 1
src/Composer/Installer.php

@@ -605,7 +605,7 @@ class Installer
                 $this->eventDispatcher->dispatchPackageEvent(constant($event), $this->devMode, $policy, $pool, $installedRepo, $request, $operations, $operation);
             }
 
-            if ($this->executeOperations) {
+            if ($this->executeOperations || $this->writeLock) {
                 $localRepo->write();
             }
         }