Force a redownload to source when updating from dist to dev package
parent
aa21b1a93a
commit
983de81b1d
|
@ -164,6 +164,13 @@ class DownloadManager
|
||||||
$targetType = $target->getSourceType();
|
$targetType = $target->getSourceType();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// upgrading from a dist stable package to a dev package, force source reinstall
|
||||||
|
if ($target->isDev() && 'dist' === $installationSource) {
|
||||||
|
$downloader->remove($initial, $targetDir);
|
||||||
|
$this->download($target, $targetDir, 'source' === $installationSource);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if ($initialType === $targetType) {
|
if ($initialType === $targetType) {
|
||||||
$target->setInstallationSource($installationSource);
|
$target->setInstallationSource($installationSource);
|
||||||
$downloader->update($initial, $target, $targetDir);
|
$downloader->update($initial, $target, $targetDir);
|
||||||
|
|
Loading…
Reference in New Issue