1
0
Fork 0

Force a redownload to source when updating from dist to dev package

pull/558/head
Jordi Boggiano 2012-04-10 11:53:21 +02:00
parent aa21b1a93a
commit 983de81b1d
1 changed files with 7 additions and 0 deletions

View File

@ -164,6 +164,13 @@ class DownloadManager
$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) {
$target->setInstallationSource($installationSource);
$downloader->update($initial, $target, $targetDir);