|
@@ 125-132 (lines=8) @@
|
| 122 |
|
$output->info('Using market to update existing apps'); |
| 123 |
|
try { |
| 124 |
|
// Try to update incompatible apps |
| 125 |
|
if(!empty($appsToUpgrade[self::KEY_INCOMPATIBLE])) { |
| 126 |
|
$output->info('Attempting to update the following existing but incompatible app from market: '.implode(', ', $appsToUpgrade[self::KEY_INCOMPATIBLE])); |
| 127 |
|
$failedIncompatibleApps = $this->getAppsFromMarket( |
| 128 |
|
$output, |
| 129 |
|
$appsToUpgrade[self::KEY_INCOMPATIBLE], |
| 130 |
|
'upgradeAppStoreApp' |
| 131 |
|
); |
| 132 |
|
} |
| 133 |
|
|
| 134 |
|
// Try to download missing apps |
| 135 |
|
if(!empty($appsToUpgrade[self::KEY_MISSING])) { |
|
@@ 135-142 (lines=8) @@
|
| 132 |
|
} |
| 133 |
|
|
| 134 |
|
// Try to download missing apps |
| 135 |
|
if(!empty($appsToUpgrade[self::KEY_MISSING])) { |
| 136 |
|
$output->info('Attempting to update the following missing apps from market: '.implode(', ', $appsToUpgrade[self::KEY_MISSING])); |
| 137 |
|
$failedMissingApps = $this->getAppsFromMarket( |
| 138 |
|
$output, |
| 139 |
|
$appsToUpgrade[self::KEY_MISSING], |
| 140 |
|
'reinstallAppStoreApp' |
| 141 |
|
); |
| 142 |
|
} |
| 143 |
|
|
| 144 |
|
// Try to update compatible apps |
| 145 |
|
if(!empty($appsToUpgrade[self::KEY_COMPATIBLE])) { |
|
@@ 145-152 (lines=8) @@
|
| 142 |
|
} |
| 143 |
|
|
| 144 |
|
// Try to update compatible apps |
| 145 |
|
if(!empty($appsToUpgrade[self::KEY_COMPATIBLE])) { |
| 146 |
|
$output->info('Attempting to update the following existing compatible apps from market: '.implode(', ', $appsToUpgrade[self::KEY_MISSING])); |
| 147 |
|
$failedCompatibleApps = $this->getAppsFromMarket( |
| 148 |
|
$output, |
| 149 |
|
$appsToUpgrade[self::KEY_COMPATIBLE], |
| 150 |
|
'upgradeAppStoreApp' |
| 151 |
|
); |
| 152 |
|
} |
| 153 |
|
|
| 154 |
|
$hasNotUpdatedCompatibleApps = count($failedCompatibleApps); |
| 155 |
|
} catch (AppManagerException $e) { |