From 0ea93df252d53d62a8a48ea190f69d0967ab4f18 Mon Sep 17 00:00:00 2001 From: Yanick Witschi Date: Wed, 11 Jan 2017 13:37:13 +0100 Subject: [PATCH] Fixed no lock file was written when setting writeLock to true and executeOperations to false --- src/Composer/Installer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Installer.php b/src/Composer/Installer.php index ec8157456..9f6fa5d04 100644 --- a/src/Composer/Installer.php +++ b/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(); } }