Merge pull request #1225 from marcoAntonioNina/master

Improvement the number of workspace in upgrade.
This commit is contained in:
julceslauhub
2013-01-24 10:56:32 -08:00

View File

@@ -105,10 +105,12 @@ function run_upgrade($command, $args)
$count = count($workspaces);
$first = true;
$errors = false;
$countWorkspace = 1;
$buildCacheView = array_key_exists("buildACV", $args);
foreach ($workspaces as $index => $workspace) {
try {
CLI::logging("Upgrading workspaces ($index/$count): " . CLI::info($workspace->name) . "\n");
$countWorkspace = $countWorkspace + $index;
CLI::logging("Upgrading workspaces ($countWorkspace/$count): " . CLI::info($workspace->name) . "\n");
$workspace->upgrade($first, $buildCacheView, $workspace->name);
$workspace->close();
$first = false;