From 32e86ba410cdc016f2183fe0801d443464cb1aa3 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sat, 7 Apr 2012 00:28:14 +0200 Subject: [PATCH] Fix lockfile --- src/Composer/Package/Locker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Package/Locker.php b/src/Composer/Package/Locker.php index 25fb6c25f..cc5112835 100644 --- a/src/Composer/Package/Locker.php +++ b/src/Composer/Package/Locker.php @@ -159,7 +159,7 @@ class Locker return strcmp($a['package'], $b['package']); }); - if ($lock !== $this->getLockData()) { + if (!$this->isLocked() || $lock !== $this->getLockData()) { $this->lockFile->write($lock); $this->lockDataCache = null;