1
0
Fork 0

Always treat changes in dist and source references as updates

pull/8444/head
Nils Adermann 2019-11-14 15:32:38 +01:00
parent 99eb86c506
commit 4e7702598e
1 changed files with 4 additions and 3 deletions

View File

@ -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()]);