|
@@ -240,7 +240,7 @@ class PackageClass
|
|
|
$fileName = $fileInfo['name'];
|
|
|
|
|
|
//下载文件到缓存区
|
|
|
- $filePath = downloadToDir($toolDir,$ossHost,$repoName,$version,$fileName,$cacheDir);
|
|
|
+ $filePath = downloadToDir($toolDir,$ossHost,$repoName,$fileName,$cacheDir);
|
|
|
if(! $filePath ){
|
|
|
logError($repoName,"fetch module file failed",$fileName);
|
|
|
return false;
|
|
@@ -274,7 +274,7 @@ class PackageClass
|
|
|
foreach($commonFiles as $fileInfo){
|
|
|
$fileName = $fileInfo['name'];
|
|
|
//下载文件到缓存区
|
|
|
- $filePath = downloadToDir($toolDir,$ossHost,$repoName,$version,$fileName,$cacheDir);
|
|
|
+ $filePath = downloadToDir($toolDir,$ossHost,$repoName,$fileName,$cacheDir);
|
|
|
if(! $filePath ){
|
|
|
logError($repoName,"fetch common file failed",$fileName);
|
|
|
return false;
|