cvs: php-src /pear/PEAR/Command Mirror.php

From: Date: Thu, 18 Mar 2004 12:23:58 +0000
Subject: cvs: php-src /pear/PEAR/Command Mirror.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-190@lists.php.net to get a copy of this message
mj Thu Mar 18 07:23:58 2004 EDT Modified files: /php-src/pear/PEAR/Command Mirror.php Log: * Converting tabs to spaces http://cvs.php.net/diff.php/php-src/pear/PEAR/Command/Mirror.php?r1=1.4&r2=1.5&ty=u Index: php-src/pear/PEAR/Command/Mirror.php diff -u php-src/pear/PEAR/Command/Mirror.php:1.4 php-src/pear/PEAR/Command/Mirror.php:1.5 --- php-src/pear/PEAR/Command/Mirror.php:1.4 Thu Mar 18 07:21:28 2004 +++ php-src/pear/PEAR/Command/Mirror.php Thu Mar 18 07:23:57 2004 @@ -17,7 +17,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: Mirror.php,v 1.4 2004/03/18 12:21:28 mj Exp $ +// $Id: Mirror.php,v 1.5 2004/03/18 12:23:57 mj Exp $ require_once "PEAR/Command/Common.php"; require_once "PEAR/Command.php"; @@ -76,21 +76,23 @@ */ 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; }

« previous php.pear.core (#190) next »