Merge branch '1.2'
commit
3030dab90e
|
@ -67,6 +67,12 @@ abstract class VcsDownloader implements DownloaderInterface, ChangeReportInterfa
|
||||||
while ($url = array_shift($urls)) {
|
while ($url = array_shift($urls)) {
|
||||||
try {
|
try {
|
||||||
if (Filesystem::isLocalPath($url)) {
|
if (Filesystem::isLocalPath($url)) {
|
||||||
|
# realpath() below will not understand
|
||||||
|
# url that starts with "file://"
|
||||||
|
$needle = 'file://';
|
||||||
|
if (0 === strpos($url, $needle)) {
|
||||||
|
$url = substr($url, strlen($needle));
|
||||||
|
}
|
||||||
$url = realpath($url);
|
$url = realpath($url);
|
||||||
}
|
}
|
||||||
$this->doDownload($package, $path, $url);
|
$this->doDownload($package, $path, $url);
|
||||||
|
|
Loading…
Reference in New Issue