Minor tweaks

main
Jordi Boggiano 6 years ago
parent 0961e16795
commit e753bf08b1

2
composer.lock generated

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "d356b92e869790db1e9d2c0f4b10935e",
"content-hash": "3243ce6f26231df34d1bceab1a148803",
"packages": [
{
"name": "composer/ca-bundle",

@ -217,6 +217,7 @@ class Solver
$this->setupInstalledMap();
$this->io->writeError('Generating rules', true, IOInterface::DEBUG);
$this->ruleSetGenerator = new RuleSetGenerator($this->policy, $this->pool);
$this->rules = $this->ruleSetGenerator->getRulesFor($this->jobs, $this->installedMap, $ignorePlatformReqs);
$this->checkForRootRequireProblems($ignorePlatformReqs);

@ -527,6 +527,8 @@ class ComposerRepository extends ArrayRepository implements ConfigurableReposito
// TODO what if not, then throw?
if ($this->lazyProvidersUrl) {
foreach ($packageNames as $name => $constraint) {
$name = strtolower($name);
// skip platform packages, root package and composer-plugin-api
if (preg_match(PlatformRepository::PLATFORM_PACKAGE_REGEX, $name) || '__root__' === $name || 'composer-plugin-api' === $name) {
continue;

Loading…
Cancel
Save