1
0
Fork 0

can use relative path for mirror

pull/6341/merge
Robert Lu 2017-05-04 16:47:16 +08:00 committed by Jordi Boggiano
parent 75416c69b4
commit 05fcc4adfb
1 changed files with 4 additions and 1 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'])); $this->sourceMirrors['hg'][] = array('url' => $mirror['hg-url'], 'preferred' => !empty($mirror['preferred']));
} }
if (!empty($mirror['dist-url'])) { 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'])
);
} }
} }
} }