Fix outdated list when no new version can be matched, refs #10770
parent
bc1fd3c8b7
commit
3366271d73
|
@ -472,7 +472,11 @@ EOT
|
|||
if ($writeLatest && $latestPackage) {
|
||||
$packageViewData['latest'] = $latestPackage->getFullPrettyVersion();
|
||||
$packageViewData['latest-status'] = $this->getUpdateStatus($latestPackage, $package);
|
||||
$latestLength = max($latestLength, strlen($latestPackage->getFullPrettyVersion()));
|
||||
$latestLength = max($latestLength, strlen($packageViewData['latest']));
|
||||
} elseif ($writeLatest) {
|
||||
$packageViewData['latest'] = '[none matched]';
|
||||
$packageViewData['latest-status'] = 'up-to-date';
|
||||
$latestLength = max($latestLength, strlen($packageViewData['latest']));
|
||||
}
|
||||
if ($writeDescription && $package instanceof CompletePackageInterface) {
|
||||
$packageViewData['description'] = $package->getDescription();
|
||||
|
|
Loading…
Reference in New Issue