1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Merge branch '1.4'

This commit is contained in:
Jordi Boggiano 2017-05-16 22:19:12 +02:00
commit 39d187fb1e
4 changed files with 16 additions and 7 deletions

View file

@ -497,7 +497,10 @@ class ComposerRepository extends ArrayRepository implements ConfigurableReposito
$this->sourceMirrors['hg'][] = array('url' => $mirror['hg-url'], 'preferred' => !empty($mirror['preferred']));
}
if (!empty($mirror['dist-url'])) {
$this->distMirrors[] = array('url' => $mirror['dist-url'], 'preferred' => !empty($mirror['preferred']));
$this->distMirrors[] = array(
'url' => $this->canonicalizeUrl($mirror['dist-url']),
'preferred' => !empty($mirror['preferred'])
);
}
}
}