Report "same as actual" version if override package matches actual
parent
41458c7518
commit
3c543b2752
|
@ -236,7 +236,12 @@ class PlatformRepository extends ArrayRepository
|
|||
// Skip if overridden
|
||||
if (isset($this->overrides[$package->getName()])) {
|
||||
$overrider = $this->findPackage($package->getName(), '*');
|
||||
$overrider->setDescription($overrider->getDescription().' (actual: '.$package->getPrettyVersion().')');
|
||||
if ($package->getVersion() === $overrider->getVersion()) {
|
||||
$actualText = 'same as actual';
|
||||
} else {
|
||||
$actualText = 'actual: '.$package->getPrettyVersion();
|
||||
}
|
||||
$overrider->setDescription($overrider->getDescription().' ('.$actualText.')');
|
||||
|
||||
return;
|
||||
}
|
||||
|
@ -244,7 +249,12 @@ class PlatformRepository extends ArrayRepository
|
|||
// Skip if PHP is overridden and we are adding a php-* package
|
||||
if (isset($this->overrides['php']) && 0 === strpos($package->getName(), 'php-')) {
|
||||
$overrider = $this->addOverriddenPackage($this->overrides['php'], $package->getPrettyName());
|
||||
$overrider->setDescription($overrider->getDescription().' (actual: '.$package->getPrettyVersion().')');
|
||||
if ($package->getVersion() === $overrider->getVersion()) {
|
||||
$actualText = 'same as actual';
|
||||
} else {
|
||||
$actualText = 'actual: '.$package->getPrettyVersion();
|
||||
}
|
||||
$overrider->setDescription($overrider->getDescription().' ('.$actualText.')');
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue