1
0
Fork 0

Update URLs for bitbucket as well

pull/4169/head
Jordi Boggiano 2015-06-19 23:23:27 +01:00
parent ee1e2c6f15
commit d5bdf4be28
1 changed files with 1 additions and 1 deletions

View File

@ -970,7 +970,7 @@ class Installer
$package->setSourceUrl($newPackage->getSourceUrl());
// only update dist url for github dists as they use a combination of dist url + dist reference to install
// but for other urls this is ambiguous and could result in bad outcomes
if (preg_match('{^https?://(api\.)?github\.com/}', $newPackage->getDistUrl())) {
if (preg_match('{^https?://(?:(?:www\.)?bitbucket\.org|(api\.)?github\.com)/}', $newPackage->getDistUrl())) {
$package->setDistUrl($newPackage->getDistUrl());
}
}