Skip to content

Commit

Permalink
Force platform packages to remain installed
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek authored and naderman committed May 8, 2012
1 parent 90732fd commit dd17a1b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Composer/Installer.php
Expand Up @@ -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;
}

Expand Down

0 comments on commit dd17a1b

Please sign in to comment.