Skip to content

Commit

Permalink
* Converting tabs to spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
mj committed Mar 18, 2004
1 parent 254456a commit ba7d6ef
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions pear/PEAR/Command/Mirror.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,21 +76,23 @@ function PEAR_Command_Mirror(&$ui, &$config)
*/
function doDownloadAll($command, $options, $params)
{
$this->config->set("php_dir", ".");
$remote = &new PEAR_Remote($this->config);
$remoteInfo = $remote->call("package.listAll");
if(PEAR::isError($remoteInfo)) {
return $remoteInfo;
}
$cmd = &PEAR_Command::factory("download", $this->config);
if(PEAR::isError($cmd)) {
return $cmd;
}
foreach($remoteInfo as $pkgn=>$pkg) {
// error handling not neccesary, because
// already done by the download command
$cmd->run("download", array(), array($pkgn));
}
$this->config->set("php_dir", ".");
$remote = &new PEAR_Remote($this->config);
$remoteInfo = $remote->call("package.listAll");
if (PEAR::isError($remoteInfo)) {
return $remoteInfo;
}
$cmd = &PEAR_Command::factory("download", $this->config);
if (PEAR::isError($cmd)) {
return $cmd;
}
foreach ($remoteInfo as $pkgn => $pkg) {
/**
* Error handling not neccesary, because already done by
* the download command
*/
$cmd->run("download", array(), array($pkgn));
}

return true;
}
Expand Down

0 comments on commit ba7d6ef

Please sign in to comment.