Allow packages with only a dist ref to be force updated when the dist ref changes
parent
89c6a68a76
commit
6508dc4322
|
@ -569,7 +569,8 @@ class Installer
|
||||||
if ('update' === $operation->getJobType()
|
if ('update' === $operation->getJobType()
|
||||||
&& $operation->getTargetPackage()->isDev()
|
&& $operation->getTargetPackage()->isDev()
|
||||||
&& $operation->getTargetPackage()->getVersion() === $operation->getInitialPackage()->getVersion()
|
&& $operation->getTargetPackage()->getVersion() === $operation->getInitialPackage()->getVersion()
|
||||||
&& $operation->getTargetPackage()->getSourceReference() === $operation->getInitialPackage()->getSourceReference()
|
&& (!$operation->getTargetPackage()->getSourceReference() || $operation->getTargetPackage()->getSourceReference() === $operation->getInitialPackage()->getSourceReference())
|
||||||
|
&& (!$operation->getTargetPackage()->getDistReference() || $operation->getTargetPackage()->getDistReference() === $operation->getInitialPackage()->getDistReference())
|
||||||
) {
|
) {
|
||||||
if ($this->io->isDebug()) {
|
if ($this->io->isDebug()) {
|
||||||
$this->io->writeError(' - Skipping update of '. $operation->getTargetPackage()->getPrettyName().' to the same reference-locked version');
|
$this->io->writeError(' - Skipping update of '. $operation->getTargetPackage()->getPrettyName().' to the same reference-locked version');
|
||||||
|
|
Loading…
Reference in New Issue