瀏覽代碼

Force platform packages to remain installed

Jordi Boggiano 13 年之前
父節點
當前提交
b3659d85f3
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      src/Composer/Installer.php

+ 4 - 2
src/Composer/Installer.php

@@ -242,9 +242,11 @@ class Installer
             }
         }
 
-        // fix the version all installed packages that are not in the current local repo to prevent rogue updates
+        // fix the version of all installed packages (+ platform) that are not
+        // in the current local repo to prevent rogue updates (e.g. non-dev
+        // updating when in dev)
         foreach ($installedRepo->getPackages() as $package) {
-            if ($package->getRepository() === $localRepo || $package->getRepository() instanceof PlatformRepository) {
+            if ($package->getRepository() === $localRepo) {
                 continue;
             }