Always treat changes in dist and source references as updates
parent
99eb86c506
commit
4e7702598e
|
@ -141,9 +141,10 @@ class Transaction
|
||||||
|
|
||||||
// do we need to update?
|
// do we need to update?
|
||||||
// TODO different for lock?
|
// TODO different for lock?
|
||||||
if ($package->getVersion() != $presentPackageMap[$package->getName()]->getVersion()) {
|
if ($package->getVersion() != $presentPackageMap[$package->getName()]->getVersion() ||
|
||||||
$operations[] = new Operation\UpdateOperation($source, $package);
|
$package->getDistReference() !== $presentPackageMap[$package->getName()]->getDistReference() ||
|
||||||
} elseif ($package->isDev() && $package->getSourceReference() !== $presentPackageMap[$package->getName()]->getSourceReference()) {
|
$package->getSourceReference() !== $presentPackageMap[$package->getName()]->getSourceReference()
|
||||||
|
) {
|
||||||
$operations[] = new Operation\UpdateOperation($source, $package);
|
$operations[] = new Operation\UpdateOperation($source, $package);
|
||||||
}
|
}
|
||||||
unset($removeMap[$package->getName()]);
|
unset($removeMap[$package->getName()]);
|
||||||
|
|
Loading…
Reference in New Issue