1
0
Fork 0

Do not overwrite output in verbose mode

pull/1283/head
Jordi Boggiano 2012-11-02 18:12:40 +01:00
parent 28053504e5
commit bb701da8c2
1 changed files with 6 additions and 2 deletions

View File

@ -175,7 +175,9 @@ class VcsRepository extends ArrayRepository
} }
} }
$this->io->overwrite('', false); if (!$verbose) {
$this->io->overwrite('', false);
}
foreach ($driver->getBranches() as $branch => $identifier) { foreach ($driver->getBranches() as $branch => $identifier) {
$msg = 'Reading composer.json of <info>' . ($this->packageName ?: $this->url) . '</info> (<comment>' . $branch . '</comment>)'; $msg = 'Reading composer.json of <info>' . ($this->packageName ?: $this->url) . '</info> (<comment>' . $branch . '</comment>)';
@ -227,7 +229,9 @@ class VcsRepository extends ArrayRepository
} }
} }
$this->io->overwrite('', false); if (!$verbose) {
$this->io->overwrite('', false);
}
if (!$this->getPackages()) { if (!$this->getPackages()) {
throw new \RuntimeException('No valid composer.json was found in any branch or tag of '.$this->url.', could not load a package from it.'); throw new \RuntimeException('No valid composer.json was found in any branch or tag of '.$this->url.', could not load a package from it.');