Browse Source

Fix lockfile

Jordi Boggiano 13 years ago
parent
commit
32e86ba410
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Composer/Package/Locker.php

+ 1 - 1
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;