parent
d56387edb7
commit
dd54f295fe
|
@ -451,12 +451,22 @@ class InstallationManager
|
||||||
private function waitOnPromises(array $promises)
|
private function waitOnPromises(array $promises)
|
||||||
{
|
{
|
||||||
$progress = null;
|
$progress = null;
|
||||||
if ($this->outputProgress && $this->io instanceof ConsoleIO && !$this->io->isDebug() && count($promises) > 1) {
|
if (
|
||||||
|
$this->outputProgress
|
||||||
|
&& $this->io instanceof ConsoleIO
|
||||||
|
&& !getenv('CI')
|
||||||
|
&& !$this->io->isDebug()
|
||||||
|
&& count($promises) > 1
|
||||||
|
) {
|
||||||
$progress = $this->io->getProgressBar();
|
$progress = $this->io->getProgressBar();
|
||||||
}
|
}
|
||||||
$this->loop->wait($promises, $progress);
|
$this->loop->wait($promises, $progress);
|
||||||
if ($progress) {
|
if ($progress) {
|
||||||
$progress->clear();
|
$progress->clear();
|
||||||
|
// ProgressBar in non-decorated output does not output a final line-break and clear() does nothing
|
||||||
|
if ($this->io->isDecorated()) {
|
||||||
|
$this->io->writeError('');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -108,7 +108,7 @@ class Loop
|
||||||
|
|
||||||
// as we skip progress updates if they are too quick, make sure we do one last one here at 100%
|
// as we skip progress updates if they are too quick, make sure we do one last one here at 100%
|
||||||
if ($progress) {
|
if ($progress) {
|
||||||
$progress->setProgress($progress->getMaxSteps());
|
$progress->finish();
|
||||||
}
|
}
|
||||||
|
|
||||||
unset($this->currentPromises[$waitIndex]);
|
unset($this->currentPromises[$waitIndex]);
|
||||||
|
|
Loading…
Reference in New Issue