Merge remote-tracking branch 'origin/1.8'
commit
32ca426e38
|
@ -473,6 +473,8 @@ class Installer
|
||||||
$solver = new Solver($policy, $pool, $installedRepo, $this->io);
|
$solver = new Solver($policy, $pool, $installedRepo, $this->io);
|
||||||
try {
|
try {
|
||||||
$operations = $solver->solve($request, $this->ignorePlatformReqs);
|
$operations = $solver->solve($request, $this->ignorePlatformReqs);
|
||||||
|
$ruleSetSize = $solver->getRuleSetSize();
|
||||||
|
$solver = null;
|
||||||
} catch (SolverProblemsException $e) {
|
} catch (SolverProblemsException $e) {
|
||||||
$this->io->writeError('<error>Your requirements could not be resolved to an installable set of packages.</error>', true, IOInterface::QUIET);
|
$this->io->writeError('<error>Your requirements could not be resolved to an installable set of packages.</error>', true, IOInterface::QUIET);
|
||||||
$this->io->writeError($e->getMessage());
|
$this->io->writeError($e->getMessage());
|
||||||
|
@ -489,7 +491,7 @@ class Installer
|
||||||
$this->eventDispatcher->dispatchInstallerEvent(InstallerEvents::POST_DEPENDENCIES_SOLVING, $this->devMode, $policy, $pool, $installedRepo, $request, $operations);
|
$this->eventDispatcher->dispatchInstallerEvent(InstallerEvents::POST_DEPENDENCIES_SOLVING, $this->devMode, $policy, $pool, $installedRepo, $request, $operations);
|
||||||
|
|
||||||
$this->io->writeError("Analyzed ".count($pool)." packages to resolve dependencies", true, IOInterface::VERBOSE);
|
$this->io->writeError("Analyzed ".count($pool)." packages to resolve dependencies", true, IOInterface::VERBOSE);
|
||||||
$this->io->writeError("Analyzed ".$solver->getRuleSetSize()." rules to resolve dependencies", true, IOInterface::VERBOSE);
|
$this->io->writeError("Analyzed ".$ruleSetSize." rules to resolve dependencies", true, IOInterface::VERBOSE);
|
||||||
|
|
||||||
// execute operations
|
// execute operations
|
||||||
if (!$operations) {
|
if (!$operations) {
|
||||||
|
|
|
@ -66,8 +66,9 @@ class HgDriver extends VcsDriver
|
||||||
// clean up directory and do a fresh clone into it
|
// clean up directory and do a fresh clone into it
|
||||||
$fs->removeDirectory($this->repoDir);
|
$fs->removeDirectory($this->repoDir);
|
||||||
|
|
||||||
$command = function ($url) {
|
$repoDir = $this->repoDir;
|
||||||
return sprintf('hg clone --noupdate %s %s', ProcessExecutor::escape($url), ProcessExecutor::escape($this->repoDir));
|
$command = function ($url) use ($repoDir) {
|
||||||
|
return sprintf('hg clone --noupdate %s %s', ProcessExecutor::escape($url), ProcessExecutor::escape($repoDir));
|
||||||
};
|
};
|
||||||
|
|
||||||
$hgUtils->runCommand($command, $this->url, $this->repoDir);
|
$hgUtils->runCommand($command, $this->url, $this->repoDir);
|
||||||
|
|
Loading…
Reference in New Issue