1
0
Fork 0

Update only github dist URLs, refs #3985

pull/3991/head
Jordi Boggiano 2015-05-01 16:26:59 +01:00
parent ab02867015
commit d426246b80
1 changed files with 5 additions and 1 deletions

View File

@ -968,7 +968,11 @@ class Installer
// update the dist and source URLs
$package->setSourceUrl($newPackage->getSourceUrl());
$package->setDistUrl($newPackage->getDistUrl());
// 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())) {
$package->setDistUrl($newPackage->getDistUrl());
}
}
}
}