Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Force platform packages to remain installed

  • Loading branch information...
commit dd17a1bbd70f2cd44b307ec73f82b06604264451 1 parent 90732fd
@Seldaek Seldaek authored naderman committed
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/Composer/Installer.php
View
6 src/Composer/Installer.php
@@ -259,9 +259,11 @@ protected function doInstall($localRepo, $installedRepo, $aliases, $devMode = fa
}
}
- // 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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.