Update only github dist URLs, refs #3985
parent
ab02867015
commit
d426246b80
|
@ -968,10 +968,14 @@ class Installer
|
|||
|
||||
// update the dist and source URLs
|
||||
$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())) {
|
||||
$package->setDistUrl($newPackage->getDistUrl());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private function aliasPlatformPackages(PlatformRepository $platformRepo, $aliases)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue