From 0c61e9d3450a41d2686d9e541cdba138adc37af6 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Mon, 5 Nov 2012 12:38:11 +0100 Subject: [PATCH] Add warning/errors flags to VCS repo output --- src/Composer/Repository/VcsRepository.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Composer/Repository/VcsRepository.php b/src/Composer/Repository/VcsRepository.php index 6a9821245..c9c3b3d1f 100644 --- a/src/Composer/Repository/VcsRepository.php +++ b/src/Composer/Repository/VcsRepository.php @@ -119,7 +119,7 @@ class VcsRepository extends ArrayRepository } } catch (\Exception $e) { if ($verbose) { - $this->io->write('Skipped parsing '.$driver->getRootIdentifier().', '.$e->getMessage()); + $this->io->write('Skipped parsing '.$driver->getRootIdentifier().', '.$e->getMessage().''); } } @@ -136,7 +136,7 @@ class VcsRepository extends ArrayRepository if (!$parsedTag = $this->validateTag($tag)) { if ($verbose) { - $this->io->write('Skipped tag '.$tag.', invalid tag name'); + $this->io->write('Skipped tag '.$tag.', invalid tag name'); } continue; } @@ -144,7 +144,7 @@ class VcsRepository extends ArrayRepository try { if (!$data = $driver->getComposerInformation($identifier)) { if ($verbose) { - $this->io->write('Skipped tag '.$tag.', no composer file'); + $this->io->write('Skipped tag '.$tag.', no composer file'); } continue; } @@ -165,7 +165,7 @@ class VcsRepository extends ArrayRepository // broken package, version doesn't match tag if ($data['version_normalized'] !== $parsedTag) { if ($verbose) { - $this->io->write('Skipped tag '.$tag.', tag ('.$parsedTag.') does not match version ('.$data['version_normalized'].') in composer.json'); + $this->io->write('Skipped tag '.$tag.', tag ('.$parsedTag.') does not match version ('.$data['version_normalized'].') in composer.json'); } continue; } @@ -177,7 +177,7 @@ class VcsRepository extends ArrayRepository $this->addPackage($this->loader->load($this->preProcess($driver, $data, $identifier))); } catch (\Exception $e) { if ($verbose) { - $this->io->write('Skipped tag '.$tag.', '.($e instanceof TransportException ? 'no composer file was found' : $e->getMessage())); + $this->io->write('Skipped tag '.$tag.', '.($e instanceof TransportException ? 'no composer file was found' : $e->getMessage()).''); } continue; } @@ -197,7 +197,7 @@ class VcsRepository extends ArrayRepository if (!$parsedBranch = $this->validateBranch($branch)) { if ($verbose) { - $this->io->write('Skipped branch '.$branch.', invalid name'); + $this->io->write('Skipped branch '.$branch.', invalid name'); } continue; } @@ -205,7 +205,7 @@ class VcsRepository extends ArrayRepository try { if (!$data = $driver->getComposerInformation($identifier)) { if ($verbose) { - $this->io->write('Skipped branch '.$branch.', no composer file'); + $this->io->write('Skipped branch '.$branch.', no composer file'); } continue; } @@ -233,7 +233,7 @@ class VcsRepository extends ArrayRepository $this->addPackage($package); } catch (TransportException $e) { if ($verbose) { - $this->io->write('Skipped branch '.$branch.', no composer file was found'); + $this->io->write('Skipped branch '.$branch.', no composer file was found'); } continue; } catch (\Exception $e) { @@ -241,7 +241,7 @@ class VcsRepository extends ArrayRepository $this->io->write(''); } $this->branchErrorOccurred = true; - $this->io->write('Skipped branch '.$branch.', '.$e->getMessage()); + $this->io->write('Skipped branch '.$branch.', '.$e->getMessage().''); $this->io->write(''); continue; }