1
0
Fork 0

Move command termination outside of output loop

pull/6228/head
Alexander Schwenn 2017-03-05 21:53:44 +01:00
parent e672628565
commit 52ca1bd9c5
1 changed files with 5 additions and 1 deletions

View File

@ -270,6 +270,7 @@ EOT
$showMinorOnly = $input->getOption('minor-only'); $showMinorOnly = $input->getOption('minor-only');
$indent = $showAllTypes ? ' ' : ''; $indent = $showAllTypes ? ' ' : '';
$latestPackages = array(); $latestPackages = array();
$exitCode = 0;
foreach (array('platform' => true, 'available' => false, 'installed' => true) as $type => $showVersion) { foreach (array('platform' => true, 'available' => false, 'installed' => true) as $type => $showVersion) {
if (isset($packages[$type])) { if (isset($packages[$type])) {
ksort($packages[$type]); ksort($packages[$type]);
@ -394,10 +395,13 @@ EOT
$io->write(''); $io->write('');
} }
if ($input->getOption('strict') && $hasOutdatedPackages) { if ($input->getOption('strict') && $hasOutdatedPackages) {
return 1; $exitCode = 1;
break;
} }
} }
} }
return $exitCode;
} }
protected function getRootRequires() protected function getRootRequires()