|
@@ -32,13 +32,13 @@ class PearDownloader extends AbstractDownloader
|
|
}
|
|
}
|
|
|
|
|
|
$tmpName = tempnam(sys_get_temp_dir(), '');
|
|
$tmpName = tempnam(sys_get_temp_dir(), '');
|
|
- $this->downloadFile($package->getSourceUrl(), $tmpName);
|
|
|
|
|
|
+ copy($package->getSourceUrl(), $tmpName);
|
|
|
|
|
|
if (!file_exists($tmpName)) {
|
|
if (!file_exists($tmpName)) {
|
|
throw new \UnexpectedValueException($package->getName().' could not be saved into '.$tmpName.', make sure the'
|
|
throw new \UnexpectedValueException($package->getName().' could not be saved into '.$tmpName.', make sure the'
|
|
.' directory is writable and you have internet connectivity.');
|
|
.' directory is writable and you have internet connectivity.');
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
$cwd = getcwd();
|
|
$cwd = getcwd();
|
|
chdir($path);
|
|
chdir($path);
|
|
system('tar xzf '.escapeshellarg($tmpName));
|
|
system('tar xzf '.escapeshellarg($tmpName));
|