Ensure dist url/type/checksum remain the same when doing lock hash updates, refs #11787
parent
ca433076b1
commit
042a8c2128
|
@ -111,6 +111,9 @@ class LockTransaction extends Transaction
|
||||||
if ($package->getName() === $presentPackage->getName() && $package->getVersion() === $presentPackage->getVersion()) {
|
if ($package->getName() === $presentPackage->getName() && $package->getVersion() === $presentPackage->getVersion()) {
|
||||||
if ($presentPackage->getSourceReference() && $presentPackage->getSourceType() === $package->getSourceType()) {
|
if ($presentPackage->getSourceReference() && $presentPackage->getSourceType() === $package->getSourceType()) {
|
||||||
$package->setSourceDistReferences($presentPackage->getSourceReference());
|
$package->setSourceDistReferences($presentPackage->getSourceReference());
|
||||||
|
$package->setDistUrl($presentPackage->getDistUrl());
|
||||||
|
$package->setDistType($presentPackage->getDistType());
|
||||||
|
$package->setDistSha1Checksum($presentPackage->getDistSha1Checksum());
|
||||||
}
|
}
|
||||||
if ($presentPackage->getReleaseDate() !== null && $package instanceof Package) {
|
if ($presentPackage->getReleaseDate() !== null && $package instanceof Package) {
|
||||||
$package->setReleaseDate($presentPackage->getReleaseDate());
|
$package->setReleaseDate($presentPackage->getReleaseDate());
|
||||||
|
|
Loading…
Reference in New Issue