cvs: php-src(PHP_4) /pear CMD.php PEAR.php System.php install-pear.php package-Archive_Tar.xml package.dtd /pear/Archive Tar.php /pear/Console
Getopt.php /pear/OS Guess.php /pear/PEAR Autoloader.php Builder.php Command.php Common.php Config.php Dependency.php Installer.php Packager.php
Registry.php Remote.php /pear/PEAR/Command Auth.php Build.php Common.php Config.php Install.php Mirror.php Package.php Registry.php Remote.php
/pear/PEAR/Frontend CLI.php /pear/scripts pear.bat pearcmd.php pearwin.php
| From: | Sascha Schumann | Date: | Tue, 24 Jun 2003 01:59:19 +0000 |
| Subject: | cvs: php-src(PHP_4) /pear CMD.php PEAR.php System.php install-pear.php package-Archive_Tar.xml package.dtd /pear/Archive Tar.php /pear/Console Getopt.php /pear/OS Guess.php /pear/PEAR Autoloader.php Builder.php Command.php Common.php Config.php Dependency.php Installer.php Packager.php Registry.php Remote.php /pear/PEAR/Command Auth.php Build.php Common.php Config.php Install.php Mirror.php Package.php Registry.php Remote.php /pear/PEAR/Frontend CLI.php /pear/scripts pear.bat pearcmd.php pearwin.php |
||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-11146@lists.php.net to get a copy of this message | ||
sas Mon Jun 23 21:59:19 2003 EDT
Added files: (Branch: PHP_4)
/php-src/pear/PEAR/Command Mirror.php
Modified files:
/php-src/pear CMD.php PEAR.php System.php install-pear.php
package-Archive_Tar.xml package.dtd
/php-src/pear/Archive Tar.php
/php-src/pear/Console Getopt.php
/php-src/pear/OS Guess.php
/php-src/pear/PEAR Autoloader.php Builder.php Command.php
Common.php Config.php Dependency.php
Installer.php Packager.php Registry.php
Remote.php
/php-src/pear/PEAR/Command Auth.php Build.php Common.php Config.php
Install.php Package.php Registry.php
Remote.php
/php-src/pear/PEAR/Frontend CLI.php
/php-src/pear/scripts pear.bat pearcmd.php pearwin.php
Log:
Sync PHP_5 with PHP_4's pear
Index: php-src/pear/CMD.php diff -u php-src/pear/CMD.php:1.4.10.3 php-src/pear/CMD.php:1.4.10.3.2.1 --- php-src/pear/CMD.php:1.4.10.3 Tue Jun 17 13:13:17 2003 +++ php-src/pear/CMD.php Mon Jun 23 21:59:17 2003 @@ -16,7 +16,7 @@ // | Author: Anders Johannsen <anders@johannsen.com> | // +----------------------------------------------------------------------+ // -define('CMD_RCSID', '$Id: CMD.php,v 1.4.10.3 2003/06/17 17:13:17 pajoye Exp $'); +define('CMD_RCSID', '$Id: CMD.php,v 1.4.10.3.2.1 2003/06/24 01:59:17 sas Exp $'); /** * The Cmd:: class implements an abstraction for various ways @@ -25,7 +25,7 @@ * register_shutdown_function() or as a detached process using nohup). * * @author Anders Johannsen <anders@johannsen.com> - * @version $Revision: 1.4.10.3 $ + * @version $Revision: 1.4.10.3.2.1 $ **/ require_once 'PEAR.php'; Index: php-src/pear/PEAR.php diff -u php-src/pear/PEAR.php:1.50.2.5 php-src/pear/PEAR.php:1.50.2.5.2.1 --- php-src/pear/PEAR.php:1.50.2.5 Tue Jun 17 13:13:17 2003 +++ php-src/pear/PEAR.php Mon Jun 23 21:59:17 2003 @@ -18,7 +18,7 @@ // | Tomas V.V.Cox <cox@idecnet.com> | // +----------------------------------------------------------------------+ // -// $Id: PEAR.php,v 1.50.2.5 2003/06/17 17:13:17 pajoye Exp $ +// $Id: PEAR.php,v 1.50.2.5.2.1 2003/06/24 01:59:17 sas Exp $ // define('PEAR_ERROR_RETURN', 1); Index: php-src/pear/System.php diff -u php-src/pear/System.php:1.21.2.6 php-src/pear/System.php:1.21.2.6.2.1 --- php-src/pear/System.php:1.21.2.6 Tue Jun 17 13:13:17 2003 +++ php-src/pear/System.php Mon Jun 23 21:59:17 2003 @@ -16,7 +16,7 @@ // | Authors: Tomas V.V.Cox <cox@idecnet.com> | // +----------------------------------------------------------------------+ // -// $Id: System.php,v 1.21.2.6 2003/06/17 17:13:17 pajoye Exp $ +// $Id: System.php,v 1.21.2.6.2.1 2003/06/24 01:59:17 sas Exp $ // require_once 'PEAR.php'; @@ -43,7 +43,7 @@ * * @package System * @author Tomas V.V.Cox <cox@idecnet.com> -* @version $Revision: 1.21.2.6 $ +* @version $Revision: 1.21.2.6.2.1 $ * @access public * @see http://pear.php.net/manual/ */ Index: php-src/pear/install-pear.php diff -u php-src/pear/install-pear.php:1.6.2.5 php-src/pear/install-pear.php:1.6.2.5.2.1 --- php-src/pear/install-pear.php:1.6.2.5 Tue Jun 17 13:13:17 2003 +++ php-src/pear/install-pear.php Mon Jun 23 21:59:17 2003 @@ -1,6 +1,6 @@ <?php -/* $Id: install-pear.php,v 1.6.2.5 2003/06/17 17:13:17 pajoye Exp $ */ +/* $Id: install-pear.php,v 1.6.2.5.2.1 2003/06/24 01:59:17 sas Exp $ */ $pear_dir = dirname(__FILE__); ini_set('include_path', $pear_dir); Index: php-src/pear/package-Archive_Tar.xml diff -u php-src/pear/package-Archive_Tar.xml:1.8 php-src/pear/package-Archive_Tar.xml:1.8.8.1 --- php-src/pear/package-Archive_Tar.xml:1.8 Mon May 27 20:35:15 2002 +++ php-src/pear/package-Archive_Tar.xml Mon Jun 23 21:59:17 2003 @@ -6,7 +6,7 @@ <description>This class provides handling of tar files in PHP. It supports creating, listing, extracting and adding to tar files. Gzip support is available if PHP has the zlib extension built-in or -loaded. +loaded. Bz2 compression is also supported with the bz2 extension loaded. </description> <license>PHP License</license> <maintainers> @@ -24,11 +24,12 @@ </maintainer> </maintainers> <release> - <version>0.9</version> - <date>2002-05-27</date> - <notes> - * Auto-detect gzip'ed files - </notes> + <version>1.1</version> + <date>2003-05-28</date> + <notes>* Add support for BZ2 compression +* Add support for add and extract without using temporary files : methods addString() and extractInString() + +</notes> <state>stable</state> <filelist> <dir name="Archive"> @@ -38,6 +39,30 @@ </filelist> </release> <changelog> + <release> + <version>1.0</version> + <date>2003-01-24</date> + <notes>Change status to stable</notes> + <state>stable</state> + <filelist> + <dir name="Archive"> + <file role="php" name="Tar.php"/> + </dir> + <file role="doc" name="docs/Archive_Tar.txt" baseinstalldir="/"/> + </filelist> + </release> + <release> + <version>0.10-b1</version> + <date>2003-01-08</date> + <notes>Add support for long filenames (greater than 99 characters)</notes> + <state>beta</state> + </release> + <release> + <version>0.9</version> + <date>2002-05-27</date> + <notes>Auto-detect gzip'ed files</notes> + <state>stable</state> + </release> <release> <version>0.4</version> <date>2002-05-20</date> Index: php-src/pear/package.dtd diff -u php-src/pear/package.dtd:1.27.4.5 php-src/pear/package.dtd:1.27.4.5.2.1 --- php-src/pear/package.dtd:1.27.4.5 Tue Jun 17 13:13:17 2003 +++ php-src/pear/package.dtd Mon Jun 23 21:59:17 2003 @@ -1,5 +1,5 @@ <!-- - $Id: package.dtd,v 1.27.4.5 2003/06/17 17:13:17 pajoye Exp $ + $Id: package.dtd,v 1.27.4.5.2.1 2003/06/24 01:59:17 sas Exp $ This is the PEAR package description, version 1.0. It should be used with the informal public identifier: Index: php-src/pear/Archive/Tar.php diff -u php-src/pear/Archive/Tar.php:1.13.4.4 php-src/pear/Archive/Tar.php:1.13.4.4.2.1 --- php-src/pear/Archive/Tar.php:1.13.4.4 Wed Jun 18 18:32:04 2003 +++ php-src/pear/Archive/Tar.php Mon Jun 23 21:59:17 2003 @@ -16,7 +16,7 @@ // | Author: Vincent Blavet <vincent@blavet.net> | // +----------------------------------------------------------------------+ // -// $Id: Tar.php,v 1.13.4.4 2003/06/18 22:32:04 pajoye Exp $ +// $Id: Tar.php,v 1.13.4.4.2.1 2003/06/24 01:59:17 sas Exp $ require_once 'PEAR.php'; @@ -24,7 +24,7 @@ * Creates a (compressed) Tar archive * * @author Vincent Blavet <vincent@blavet.net> -* @version $Revision: 1.13.4.4 $ +* @version $Revision: 1.13.4.4.2.1 $ * @package Archive */ class Archive_Tar extends PEAR Index: php-src/pear/Console/Getopt.php diff -u php-src/pear/Console/Getopt.php:1.21.4.3 php-src/pear/Console/Getopt.php:1.21.4.3.2.1 --- php-src/pear/Console/Getopt.php:1.21.4.3 Tue Jun 17 13:13:18 2003 +++ php-src/pear/Console/Getopt.php Mon Jun 23 21:59:18 2003 @@ -16,7 +16,7 @@ // | Author: Andrei Zmievski <andrei@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Getopt.php,v 1.21.4.3 2003/06/17 17:13:18 pajoye Exp $ +// $Id: Getopt.php,v 1.21.4.3.2.1 2003/06/24 01:59:18 sas Exp $ require_once 'PEAR.php'; Index: php-src/pear/OS/Guess.php diff -u php-src/pear/OS/Guess.php:1.3.6.6 php-src/pear/OS/Guess.php:1.3.6.6.2.1 --- php-src/pear/OS/Guess.php:1.3.6.6 Tue Jun 17 13:13:18 2003 +++ php-src/pear/OS/Guess.php Mon Jun 23 21:59:18 2003 @@ -17,7 +17,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: Guess.php,v 1.3.6.6 2003/06/17 17:13:18 pajoye Exp $ +// $Id: Guess.php,v 1.3.6.6.2.1 2003/06/24 01:59:18 sas Exp $ // {{{ uname examples Index: php-src/pear/PEAR/Autoloader.php diff -u php-src/pear/PEAR/Autoloader.php:1.4.6.4 php-src/pear/PEAR/Autoloader.php:1.4.6.4.2.1 --- php-src/pear/PEAR/Autoloader.php:1.4.6.4 Tue Jun 17 13:13:18 2003 +++ php-src/pear/PEAR/Autoloader.php Mon Jun 23 21:59:18 2003 @@ -17,7 +17,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: Autoloader.php,v 1.4.6.4 2003/06/17 17:13:18 pajoye Exp $ +// $Id: Autoloader.php,v 1.4.6.4.2.1 2003/06/24 01:59:18 sas Exp $ if (!extension_loaded("overload")) { // die hard without ext/overload Index: php-src/pear/PEAR/Builder.php diff -u php-src/pear/PEAR/Builder.php:1.7.4.4 php-src/pear/PEAR/Builder.php:1.7.4.4.2.1 --- php-src/pear/PEAR/Builder.php:1.7.4.4 Tue Jun 17 13:13:18 2003 +++ php-src/pear/PEAR/Builder.php Mon Jun 23 21:59:18 2003 @@ -16,7 +16,7 @@ // | Authors: Stig Sæther Bakken <ssb@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Builder.php,v 1.7.4.4 2003/06/17 17:13:18 pajoye Exp $ +// $Id: Builder.php,v 1.7.4.4.2.1 2003/06/24 01:59:18 sas Exp $ require_once 'PEAR/Common.php'; Index: php-src/pear/PEAR/Command.php diff -u php-src/pear/PEAR/Command.php:1.16.4.4 php-src/pear/PEAR/Command.php:1.16.4.4.2.1 --- php-src/pear/PEAR/Command.php:1.16.4.4 Tue Jun 17 13:13:18 2003 +++ php-src/pear/PEAR/Command.php Mon Jun 23 21:59:18 2003 @@ -16,7 +16,7 @@ // | Author: Stig Bakken <ssb@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Command.php,v 1.16.4.4 2003/06/17 17:13:18 pajoye Exp $ +// $Id: Command.php,v 1.16.4.4.2.1 2003/06/24 01:59:18 sas Exp $ require_once "PEAR.php"; Index: php-src/pear/PEAR/Common.php diff -u php-src/pear/PEAR/Common.php:1.81.2.7 php-src/pear/PEAR/Common.php:1.81.2.7.2.1 --- php-src/pear/PEAR/Common.php:1.81.2.7 Tue Jun 17 13:13:18 2003 +++ php-src/pear/PEAR/Common.php Mon Jun 23 21:59:18 2003 @@ -17,7 +17,7 @@ // | Tomas V.V.Cox <cox@idecnet.com> | // +----------------------------------------------------------------------+ // -// $Id: Common.php,v 1.81.2.7 2003/06/17 17:13:18 pajoye Exp $ +// $Id: Common.php,v 1.81.2.7.2.1 2003/06/24 01:59:18 sas Exp $ require_once 'PEAR.php'; require_once 'Archive/Tar.php'; Index: php-src/pear/PEAR/Config.php diff -u php-src/pear/PEAR/Config.php:1.35.2.7 php-src/pear/PEAR/Config.php:1.35.2.7.2.1 --- php-src/pear/PEAR/Config.php:1.35.2.7 Wed Jun 18 18:32:04 2003 +++ php-src/pear/PEAR/Config.php Mon Jun 23 21:59:18 2003 @@ -16,7 +16,7 @@ // | Author: Stig Bakken <ssb@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Config.php,v 1.35.2.7 2003/06/18 22:32:04 pajoye Exp $ +// $Id: Config.php,v 1.35.2.7.2.1 2003/06/24 01:59:18 sas Exp $ require_once 'PEAR.php'; require_once 'System.php'; @@ -73,7 +73,7 @@ if (getenv('PHP_PEAR_EXTENSION_DIR')) { define('PEAR_CONFIG_DEFAULT_EXT_DIR', getenv('PHP_PEAR_EXTENSION_DIR')); } else { - if (!ini_get('extension_dir')) { + if (ini_get('extension_dir')) { define('PEAR_CONFIG_DEFAULT_EXT_DIR', ini_get('extension_dir')); } elseif (defined('PEAR_EXTENSION_DIR') && @is_dir(PEAR_EXTENSION_DIR)) { define('PEAR_CONFIG_DEFAULT_EXT_DIR', PEAR_EXTENSION_DIR); Index: php-src/pear/PEAR/Dependency.php diff -u php-src/pear/PEAR/Dependency.php:1.14.4.7 php-src/pear/PEAR/Dependency.php:1.14.4.7.2.1 --- php-src/pear/PEAR/Dependency.php:1.14.4.7 Tue Jun 17 13:13:18 2003 +++ php-src/pear/PEAR/Dependency.php Mon Jun 23 21:59:18 2003 @@ -17,7 +17,7 @@ // | Stig Bakken <ssb@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Dependency.php,v 1.14.4.7 2003/06/17 17:13:18 pajoye Exp $ +// $Id: Dependency.php,v 1.14.4.7.2.1 2003/06/24 01:59:18 sas Exp $ require_once "PEAR.php"; Index: php-src/pear/PEAR/Installer.php diff -u php-src/pear/PEAR/Installer.php:1.81.2.7 php-src/pear/PEAR/Installer.php:1.81.2.7.2.1 --- php-src/pear/PEAR/Installer.php:1.81.2.7 Tue Jun 17 13:13:18 2003 +++ php-src/pear/PEAR/Installer.php Mon Jun 23 21:59:18 2003 @@ -18,7 +18,7 @@ // | Martin Jansen <mj@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Installer.php,v 1.81.2.7 2003/06/17 17:13:18 pajoye Exp $ +// $Id: Installer.php,v 1.81.2.7.2.1 2003/06/24 01:59:18 sas Exp $ require_once 'PEAR/Common.php'; require_once 'PEAR/Registry.php'; Index: php-src/pear/PEAR/Packager.php diff -u php-src/pear/PEAR/Packager.php:1.43.2.4 php-src/pear/PEAR/Packager.php:1.43.2.4.2.1 --- php-src/pear/PEAR/Packager.php:1.43.2.4 Tue Jun 17 13:13:18 2003 +++ php-src/pear/PEAR/Packager.php Mon Jun 23 21:59:18 2003 @@ -17,7 +17,7 @@ // | Tomas V.V.Cox <cox@idecnet.com> | // +----------------------------------------------------------------------+ // -// $Id: Packager.php,v 1.43.2.4 2003/06/17 17:13:18 pajoye Exp $ +// $Id: Packager.php,v 1.43.2.4.2.1 2003/06/24 01:59:18 sas Exp $ require_once 'PEAR/Common.php'; require_once 'System.php'; Index: php-src/pear/PEAR/Registry.php diff -u php-src/pear/PEAR/Registry.php:1.35.2.6 php-src/pear/PEAR/Registry.php:1.35.2.6.2.1 --- php-src/pear/PEAR/Registry.php:1.35.2.6 Tue Jun 17 13:13:18 2003 +++ php-src/pear/PEAR/Registry.php Mon Jun 23 21:59:18 2003 @@ -18,7 +18,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: Registry.php,v 1.35.2.6 2003/06/17 17:13:18 pajoye Exp $ +// $Id: Registry.php,v 1.35.2.6.2.1 2003/06/24 01:59:18 sas Exp $ /* TODO: @@ -155,7 +155,23 @@ */ function _packageFileName($package) { - return "{$this->statedir}/{$package}.reg"; + if (is_file("{$this->statedir}/{$package}.reg")) { + return "{$this->statedir}/{$package}.reg"; + } + /** + * Iterate through the directory to find the matching + * registry file, even if it has been provided in + * another case (foobar vs. FooBar) + */ + $package = strtolower($package); + if ($handle = opendir($this->statedir)) { + while (false !== ($file = readdir($handle))) { + if (strtolower($file) == $package . ".reg") { + return "{$this->statedir}/{$file}"; + } + } + closedir($handle); + } } // }}} Index: php-src/pear/PEAR/Remote.php diff -u php-src/pear/PEAR/Remote.php:1.34.2.6 php-src/pear/PEAR/Remote.php:1.34.2.6.2.1 --- php-src/pear/PEAR/Remote.php:1.34.2.6 Tue Jun 17 13:13:18 2003 +++ php-src/pear/PEAR/Remote.php Mon Jun 23 21:59:18 2003 @@ -16,7 +16,7 @@ // | Author: Stig Bakken <ssb@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Remote.php,v 1.34.2.6 2003/06/17 17:13:18 pajoye Exp $ +// $Id: Remote.php,v 1.34.2.6.2.1 2003/06/24 01:59:18 sas Exp $ require_once 'PEAR.php'; require_once 'PEAR/Config.php'; Index: php-src/pear/PEAR/Command/Auth.php diff -u php-src/pear/PEAR/Command/Auth.php:1.10.4.6 php-src/pear/PEAR/Command/Auth.php:1.10.4.6.2.1 --- php-src/pear/PEAR/Command/Auth.php:1.10.4.6 Tue Jun 17 13:13:18 2003 +++ php-src/pear/PEAR/Command/Auth.php Mon Jun 23 21:59:18 2003 @@ -16,7 +16,7 @@ // | Author: Stig Bakken <ssb@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Auth.php,v 1.10.4.6 2003/06/17 17:13:18 pajoye Exp $ +// $Id: Auth.php,v 1.10.4.6.2.1 2003/06/24 01:59:18 sas Exp $ require_once "PEAR/Command/Common.php"; require_once "PEAR/Remote.php"; Index: php-src/pear/PEAR/Command/Build.php diff -u php-src/pear/PEAR/Command/Build.php:1.3.4.6 php-src/pear/PEAR/Command/Build.php:1.3.4.6.2.1 --- php-src/pear/PEAR/Command/Build.php:1.3.4.6 Tue Jun 17 13:13:18 2003 +++ php-src/pear/PEAR/Command/Build.php Mon Jun 23 21:59:18 2003 @@ -18,7 +18,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: Build.php,v 1.3.4.6 2003/06/17 17:13:18 pajoye Exp $ +// $Id: Build.php,v 1.3.4.6.2.1 2003/06/24 01:59:18 sas Exp $ require_once "PEAR/Command/Common.php"; require_once "PEAR/Builder.php"; Index: php-src/pear/PEAR/Command/Common.php diff -u php-src/pear/PEAR/Command/Common.php:1.19.2.6 php-src/pear/PEAR/Command/Common.php:1.19.2.6.2.1 --- php-src/pear/PEAR/Command/Common.php:1.19.2.6 Tue Jun 17 13:13:18 2003 +++ php-src/pear/PEAR/Command/Common.php Mon Jun 23 21:59:18 2003 @@ -16,7 +16,7 @@ // | Author: Stig Sæther Bakken <ssb@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Common.php,v 1.19.2.6 2003/06/17 17:13:18 pajoye Exp $ +// $Id: Common.php,v 1.19.2.6.2.1 2003/06/24 01:59:18 sas Exp $ require_once "PEAR.php"; Index: php-src/pear/PEAR/Command/Config.php diff -u php-src/pear/PEAR/Command/Config.php:1.18.4.8 php-src/pear/PEAR/Command/Config.php:1.18.4.8.2.1 --- php-src/pear/PEAR/Command/Config.php:1.18.4.8 Tue Jun 17 13:13:18 2003 +++ php-src/pear/PEAR/Command/Config.php Mon Jun 23 21:59:18 2003 @@ -18,7 +18,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: Config.php,v 1.18.4.8 2003/06/17 17:13:18 pajoye Exp $ +// $Id: Config.php,v 1.18.4.8.2.1 2003/06/24 01:59:18 sas Exp $ require_once "PEAR/Command/Common.php"; require_once "PEAR/Config.php"; Index: php-src/pear/PEAR/Command/Install.php diff -u php-src/pear/PEAR/Command/Install.php:1.38.2.7 php-src/pear/PEAR/Command/Install.php:1.38.2.7.2.1 --- php-src/pear/PEAR/Command/Install.php:1.38.2.7 Tue Jun 17 13:13:18 2003 +++ php-src/pear/PEAR/Command/Install.php Mon Jun 23 21:59:18 2003 @@ -16,7 +16,7 @@ // | Author: Stig Sæther Bakken <ssb@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Install.php,v 1.38.2.7 2003/06/17 17:13:18 pajoye Exp $ +// $Id: Install.php,v 1.38.2.7.2.1 2003/06/24 01:59:18 sas Exp $ require_once "PEAR/Command/Common.php"; require_once "PEAR/Installer.php"; Index: php-src/pear/PEAR/Command/Package.php diff -u php-src/pear/PEAR/Command/Package.php:1.42.2.8 php-src/pear/PEAR/Command/Package.php:1.42.2.8.2.1 --- php-src/pear/PEAR/Command/Package.php:1.42.2.8 Tue Jun 17 13:13:18 2003 +++ php-src/pear/PEAR/Command/Package.php Mon Jun 23 21:59:18 2003 @@ -17,7 +17,7 @@ // | Martin Jansen <mj@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Package.php,v 1.42.2.8 2003/06/17 17:13:18 pajoye Exp $ +// $Id: Package.php,v 1.42.2.8.2.1 2003/06/24 01:59:18 sas Exp $ require_once 'PEAR/Common.php'; require_once 'PEAR/Command/Common.php'; Index: php-src/pear/PEAR/Command/Registry.php diff -u php-src/pear/PEAR/Command/Registry.php:1.24.4.8 php-src/pear/PEAR/Command/Registry.php:1.24.4.8.2.1 --- php-src/pear/PEAR/Command/Registry.php:1.24.4.8 Tue Jun 17 13:13:18 2003 +++ php-src/pear/PEAR/Command/Registry.php Mon Jun 23 21:59:18 2003 @@ -17,7 +17,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: Registry.php,v 1.24.4.8 2003/06/17 17:13:18 pajoye Exp $ +// $Id: Registry.php,v 1.24.4.8.2.1 2003/06/24 01:59:18 sas Exp $ require_once 'PEAR/Command/Common.php'; require_once 'PEAR/Registry.php'; Index: php-src/pear/PEAR/Command/Remote.php diff -u php-src/pear/PEAR/Command/Remote.php:1.22.2.7 php-src/pear/PEAR/Command/Remote.php:1.22.2.7.2.1 --- php-src/pear/PEAR/Command/Remote.php:1.22.2.7 Tue Jun 17 13:13:18 2003 +++ php-src/pear/PEAR/Command/Remote.php Mon Jun 23 21:59:18 2003 @@ -17,7 +17,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: Remote.php,v 1.22.2.7 2003/06/17 17:13:18 pajoye Exp $ +// $Id: Remote.php,v 1.22.2.7.2.1 2003/06/24 01:59:18 sas Exp $ require_once 'PEAR/Command/Common.php'; require_once 'PEAR/Common.php'; Index: php-src/pear/PEAR/Frontend/CLI.php diff -u php-src/pear/PEAR/Frontend/CLI.php:1.25.2.7 php-src/pear/PEAR/Frontend/CLI.php:1.25.2.7.2.1 --- php-src/pear/PEAR/Frontend/CLI.php:1.25.2.7 Tue Jun 17 13:13:19 2003 +++ php-src/pear/PEAR/Frontend/CLI.php Mon Jun 23 21:59:18 2003 @@ -16,7 +16,7 @@ | Author: Stig Sæther Bakken <ssb@php.net> | +----------------------------------------------------------------------+ - $Id: CLI.php,v 1.25.2.7 2003/06/17 17:13:19 pajoye Exp $ + $Id: CLI.php,v 1.25.2.7.2.1 2003/06/24 01:59:18 sas Exp $ */ require_once "PEAR.php"; Index: php-src/pear/scripts/pear.bat diff -u php-src/pear/scripts/pear.bat:1.10.4.4 php-src/pear/scripts/pear.bat:1.10.4.4.4.1 --- php-src/pear/scripts/pear.bat:1.10.4.4 Fri Apr 11 19:48:39 2003 +++ php-src/pear/scripts/pear.bat Mon Jun 23 21:59:18 2003 @@ -5,10 +5,10 @@ REM ---------------------------------------------------------------------- REM Copyright (c) 1997-2002 The PHP Group REM ---------------------------------------------------------------------- -REM This source file is subject to version 2.02 of the PHP license, +REM This source file is subject to version 3.0 of the PHP license, REM that is bundled with this package in the file LICENSE, and is REM available at through the world-wide-web at -REM http://www.php.net/license/2_02.txt. +REM http://www.php.net/license/3_0.txt. REM If you did not receive a copy of the PHP license and are unable to REM obtain it through the world-wide-web, please send a note to REM license@php.net so we can mail you a copy immediately. @@ -16,7 +16,7 @@ REM Authors: Alexander Merz (alexmerz@php.net) REM ---------------------------------------------------------------------- REM -REM $Id: pear.bat,v 1.10.4.4 2003/04/11 23:48:39 ssb Exp $ +REM $Id: pear.bat,v 1.10.4.4.4.1 2003/06/24 01:59:18 sas Exp $ REM change this lines to match the paths of your system REM ------------------- Index: php-src/pear/scripts/pearcmd.php diff -u php-src/pear/scripts/pearcmd.php:1.1.2.2 php-src/pear/scripts/pearcmd.php:1.1.2.2.2.1 --- php-src/pear/scripts/pearcmd.php:1.1.2.2 Tue Jun 17 13:13:19 2003 +++ php-src/pear/scripts/pearcmd.php Mon Jun 23 21:59:18 2003 @@ -18,7 +18,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: pearcmd.php,v 1.1.2.2 2003/06/17 17:13:19 pajoye Exp $ +// $Id: pearcmd.php,v 1.1.2.2.2.1 2003/06/24 01:59:18 sas Exp $ ob_end_clean(); /** Index: php-src/pear/scripts/pearwin.php diff -u php-src/pear/scripts/pearwin.php:1.8.10.3 php-src/pear/scripts/pearwin.php:1.8.10.3.2.1 --- php-src/pear/scripts/pearwin.php:1.8.10.3 Tue Jun 17 13:13:19 2003 +++ php-src/pear/scripts/pearwin.php Mon Jun 23 21:59:18 2003 @@ -17,7 +17,7 @@ // | Tomas V.V.Cox <cox@idecnet.com> | // +----------------------------------------------------------------------+ // -// $Id: pearwin.php,v 1.8.10.3 2003/06/17 17:13:19 pajoye Exp $ +// $Id: pearwin.php,v 1.8.10.3.2.1 2003/06/24 01:59:18 sas Exp $ require_once 'PEAR.php'; require_once 'PEAR/Common.php'; Index: php-src/pear/PEAR/Command/Mirror.php +++ php-src/pear/PEAR/Command/Mirror.php <?php // // +----------------------------------------------------------------------+ // | PHP Version 4 | // +----------------------------------------------------------------------+ // | Copyright (c) 1997-2003 The PHP Group | // +----------------------------------------------------------------------+ // | This source file is subject to version 2.02 of the PHP license, | // | that is bundled with this package in the file LICENSE, and is | // | available at through the world-wide-web at | // | http://www.php.net/license/2_02.txt. | // | If you did not receive a copy of the PHP license and are unable to | // | obtain it through the world-wide-web, please send a note to | // | license@php.net so we can mail you a copy immediately. | // +----------------------------------------------------------------------+ // | Author: Alexander Merz <alexmerz@php.net> | // | | // +----------------------------------------------------------------------+ // // $Id: Mirror.php,v 1.1 2003/05/05 07:07:51 alexmerz Exp $ require_once "PEAR/Command/Common.php"; require_once "PEAR/Command.php"; require_once "PEAR/Remote.php"; require_once "PEAR.php"; /** * PEAR commands for providing file mirrors * */ class PEAR_Command_Mirror extends PEAR_Command_Common { // {{{ properties var $commands = array( 'download-all' => array( 'summary' => 'Downloads each avaible Package from master_server', 'function' => 'doDownloadAll', 'shortcut' => 'da', 'options' => array(), 'doc' => ' Request a list of avaible Packages from the Package-Server (master_server) and downloads them to current working dir' ), ); // }}} // {{{ constructor /** * PEAR_Command_Mirror constructor. * * @access public * @param object PEAR_Frontend a reference to an frontend * @param object PEAR_Config a reference to the configuration data */ function PEAR_Command_Mirror(&$ui, &$config) { parent::PEAR_Command_Common($ui, $config); } // }}} // {{{ doDownloadAll() /** * retrieves a list of avaible Packages from master server * and downloads them * * @access public * @param string $command the command * @param array $options the command options before the command * @param array $params the stuff after the command name * @return bool true if succesful * @throw PEAR_Error */ 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)); } return true; } // }}} }
Index: php-src/pear/CMD.php diff -u php-src/pear/CMD.php:1.4.10.3 php-src/pear/CMD.php:1.4.10.3.2.1 --- php-src/pear/CMD.php:1.4.10.3 Tue Jun 17 13:13:17 2003 +++ php-src/pear/CMD.php Mon Jun 23 21:59:17 2003 @@ -16,7 +16,7 @@ // | Author: Anders Johannsen <anders@johannsen.com> | // +----------------------------------------------------------------------+ // -define('CMD_RCSID', '$Id: CMD.php,v 1.4.10.3 2003/06/17 17:13:17 pajoye Exp $'); +define('CMD_RCSID', '$Id: CMD.php,v 1.4.10.3.2.1 2003/06/24 01:59:17 sas Exp $'); /** * The Cmd:: class implements an abstraction for various ways @@ -25,7 +25,7 @@ * register_shutdown_function() or as a detached process using nohup). * * @author Anders Johannsen <anders@johannsen.com> - * @version $Revision: 1.4.10.3 $ + * @version $Revision: 1.4.10.3.2.1 $ **/ require_once 'PEAR.php'; Index: php-src/pear/PEAR.php diff -u php-src/pear/PEAR.php:1.50.2.5 php-src/pear/PEAR.php:1.50.2.5.2.1 --- php-src/pear/PEAR.php:1.50.2.5 Tue Jun 17 13:13:17 2003 +++ php-src/pear/PEAR.php Mon Jun 23 21:59:17 2003 @@ -18,7 +18,7 @@ // | Tomas V.V.Cox <cox@idecnet.com> | // +----------------------------------------------------------------------+ // -// $Id: PEAR.php,v 1.50.2.5 2003/06/17 17:13:17 pajoye Exp $ +// $Id: PEAR.php,v 1.50.2.5.2.1 2003/06/24 01:59:17 sas Exp $ // define('PEAR_ERROR_RETURN', 1); Index: php-src/pear/System.php diff -u php-src/pear/System.php:1.21.2.6 php-src/pear/System.php:1.21.2.6.2.1 --- php-src/pear/System.php:1.21.2.6 Tue Jun 17 13:13:17 2003 +++ php-src/pear/System.php Mon Jun 23 21:59:17 2003 @@ -16,7 +16,7 @@ // | Authors: Tomas V.V.Cox <cox@idecnet.com> | // +----------------------------------------------------------------------+ // -// $Id: System.php,v 1.21.2.6 2003/06/17 17:13:17 pajoye Exp $ +// $Id: System.php,v 1.21.2.6.2.1 2003/06/24 01:59:17 sas Exp $ // require_once 'PEAR.php'; @@ -43,7 +43,7 @@ * * @package System * @author Tomas V.V.Cox <cox@idecnet.com> -* @version $Revision: 1.21.2.6 $ +* @version $Revision: 1.21.2.6.2.1 $ * @access public * @see http://pear.php.net/manual/ */ Index: php-src/pear/install-pear.php diff -u php-src/pear/install-pear.php:1.6.2.5 php-src/pear/install-pear.php:1.6.2.5.2.1 --- php-src/pear/install-pear.php:1.6.2.5 Tue Jun 17 13:13:17 2003 +++ php-src/pear/install-pear.php Mon Jun 23 21:59:17 2003 @@ -1,6 +1,6 @@ <?php -/* $Id: install-pear.php,v 1.6.2.5 2003/06/17 17:13:17 pajoye Exp $ */ +/* $Id: install-pear.php,v 1.6.2.5.2.1 2003/06/24 01:59:17 sas Exp $ */ $pear_dir = dirname(__FILE__); ini_set('include_path', $pear_dir); Index: php-src/pear/package-Archive_Tar.xml diff -u php-src/pear/package-Archive_Tar.xml:1.8 php-src/pear/package-Archive_Tar.xml:1.8.8.1 --- php-src/pear/package-Archive_Tar.xml:1.8 Mon May 27 20:35:15 2002 +++ php-src/pear/package-Archive_Tar.xml Mon Jun 23 21:59:17 2003 @@ -6,7 +6,7 @@ <description>This class provides handling of tar files in PHP. It supports creating, listing, extracting and adding to tar files. Gzip support is available if PHP has the zlib extension built-in or -loaded. +loaded. Bz2 compression is also supported with the bz2 extension loaded. </description> <license>PHP License</license> <maintainers> @@ -24,11 +24,12 @@ </maintainer> </maintainers> <release> - <version>0.9</version> - <date>2002-05-27</date> - <notes> - * Auto-detect gzip'ed files - </notes> + <version>1.1</version> + <date>2003-05-28</date> + <notes>* Add support for BZ2 compression +* Add support for add and extract without using temporary files : methods addString() and extractInString() + +</notes> <state>stable</state> <filelist> <dir name="Archive"> @@ -38,6 +39,30 @@ </filelist> </release> <changelog> + <release> + <version>1.0</version> + <date>2003-01-24</date> + <notes>Change status to stable</notes> + <state>stable</state> + <filelist> + <dir name="Archive"> + <file role="php" name="Tar.php"/> + </dir> + <file role="doc" name="docs/Archive_Tar.txt" baseinstalldir="/"/> + </filelist> + </release> + <release> + <version>0.10-b1</version> + <date>2003-01-08</date> + <notes>Add support for long filenames (greater than 99 characters)</notes> + <state>beta</state> + </release> + <release> + <version>0.9</version> + <date>2002-05-27</date> + <notes>Auto-detect gzip'ed files</notes> + <state>stable</state> + </release> <release> <version>0.4</version> <date>2002-05-20</date> Index: php-src/pear/package.dtd diff -u php-src/pear/package.dtd:1.27.4.5 php-src/pear/package.dtd:1.27.4.5.2.1 --- php-src/pear/package.dtd:1.27.4.5 Tue Jun 17 13:13:17 2003 +++ php-src/pear/package.dtd Mon Jun 23 21:59:17 2003 @@ -1,5 +1,5 @@ <!-- - $Id: package.dtd,v 1.27.4.5 2003/06/17 17:13:17 pajoye Exp $ + $Id: package.dtd,v 1.27.4.5.2.1 2003/06/24 01:59:17 sas Exp $ This is the PEAR package description, version 1.0. It should be used with the informal public identifier: Index: php-src/pear/Archive/Tar.php diff -u php-src/pear/Archive/Tar.php:1.13.4.4 php-src/pear/Archive/Tar.php:1.13.4.4.2.1 --- php-src/pear/Archive/Tar.php:1.13.4.4 Wed Jun 18 18:32:04 2003 +++ php-src/pear/Archive/Tar.php Mon Jun 23 21:59:17 2003 @@ -16,7 +16,7 @@ // | Author: Vincent Blavet <vincent@blavet.net> | // +----------------------------------------------------------------------+ // -// $Id: Tar.php,v 1.13.4.4 2003/06/18 22:32:04 pajoye Exp $ +// $Id: Tar.php,v 1.13.4.4.2.1 2003/06/24 01:59:17 sas Exp $ require_once 'PEAR.php'; @@ -24,7 +24,7 @@ * Creates a (compressed) Tar archive * * @author Vincent Blavet <vincent@blavet.net> -* @version $Revision: 1.13.4.4 $ +* @version $Revision: 1.13.4.4.2.1 $ * @package Archive */ class Archive_Tar extends PEAR Index: php-src/pear/Console/Getopt.php diff -u php-src/pear/Console/Getopt.php:1.21.4.3 php-src/pear/Console/Getopt.php:1.21.4.3.2.1 --- php-src/pear/Console/Getopt.php:1.21.4.3 Tue Jun 17 13:13:18 2003 +++ php-src/pear/Console/Getopt.php Mon Jun 23 21:59:18 2003 @@ -16,7 +16,7 @@ // | Author: Andrei Zmievski <andrei@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Getopt.php,v 1.21.4.3 2003/06/17 17:13:18 pajoye Exp $ +// $Id: Getopt.php,v 1.21.4.3.2.1 2003/06/24 01:59:18 sas Exp $ require_once 'PEAR.php'; Index: php-src/pear/OS/Guess.php diff -u php-src/pear/OS/Guess.php:1.3.6.6 php-src/pear/OS/Guess.php:1.3.6.6.2.1 --- php-src/pear/OS/Guess.php:1.3.6.6 Tue Jun 17 13:13:18 2003 +++ php-src/pear/OS/Guess.php Mon Jun 23 21:59:18 2003 @@ -17,7 +17,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: Guess.php,v 1.3.6.6 2003/06/17 17:13:18 pajoye Exp $ +// $Id: Guess.php,v 1.3.6.6.2.1 2003/06/24 01:59:18 sas Exp $ // {{{ uname examples Index: php-src/pear/PEAR/Autoloader.php diff -u php-src/pear/PEAR/Autoloader.php:1.4.6.4 php-src/pear/PEAR/Autoloader.php:1.4.6.4.2.1 --- php-src/pear/PEAR/Autoloader.php:1.4.6.4 Tue Jun 17 13:13:18 2003 +++ php-src/pear/PEAR/Autoloader.php Mon Jun 23 21:59:18 2003 @@ -17,7 +17,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: Autoloader.php,v 1.4.6.4 2003/06/17 17:13:18 pajoye Exp $ +// $Id: Autoloader.php,v 1.4.6.4.2.1 2003/06/24 01:59:18 sas Exp $ if (!extension_loaded("overload")) { // die hard without ext/overload Index: php-src/pear/PEAR/Builder.php diff -u php-src/pear/PEAR/Builder.php:1.7.4.4 php-src/pear/PEAR/Builder.php:1.7.4.4.2.1 --- php-src/pear/PEAR/Builder.php:1.7.4.4 Tue Jun 17 13:13:18 2003 +++ php-src/pear/PEAR/Builder.php Mon Jun 23 21:59:18 2003 @@ -16,7 +16,7 @@ // | Authors: Stig Sæther Bakken <ssb@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Builder.php,v 1.7.4.4 2003/06/17 17:13:18 pajoye Exp $ +// $Id: Builder.php,v 1.7.4.4.2.1 2003/06/24 01:59:18 sas Exp $ require_once 'PEAR/Common.php'; Index: php-src/pear/PEAR/Command.php diff -u php-src/pear/PEAR/Command.php:1.16.4.4 php-src/pear/PEAR/Command.php:1.16.4.4.2.1 --- php-src/pear/PEAR/Command.php:1.16.4.4 Tue Jun 17 13:13:18 2003 +++ php-src/pear/PEAR/Command.php Mon Jun 23 21:59:18 2003 @@ -16,7 +16,7 @@ // | Author: Stig Bakken <ssb@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Command.php,v 1.16.4.4 2003/06/17 17:13:18 pajoye Exp $ +// $Id: Command.php,v 1.16.4.4.2.1 2003/06/24 01:59:18 sas Exp $ require_once "PEAR.php"; Index: php-src/pear/PEAR/Common.php diff -u php-src/pear/PEAR/Common.php:1.81.2.7 php-src/pear/PEAR/Common.php:1.81.2.7.2.1 --- php-src/pear/PEAR/Common.php:1.81.2.7 Tue Jun 17 13:13:18 2003 +++ php-src/pear/PEAR/Common.php Mon Jun 23 21:59:18 2003 @@ -17,7 +17,7 @@ // | Tomas V.V.Cox <cox@idecnet.com> | // +----------------------------------------------------------------------+ // -// $Id: Common.php,v 1.81.2.7 2003/06/17 17:13:18 pajoye Exp $ +// $Id: Common.php,v 1.81.2.7.2.1 2003/06/24 01:59:18 sas Exp $ require_once 'PEAR.php'; require_once 'Archive/Tar.php'; Index: php-src/pear/PEAR/Config.php diff -u php-src/pear/PEAR/Config.php:1.35.2.7 php-src/pear/PEAR/Config.php:1.35.2.7.2.1 --- php-src/pear/PEAR/Config.php:1.35.2.7 Wed Jun 18 18:32:04 2003 +++ php-src/pear/PEAR/Config.php Mon Jun 23 21:59:18 2003 @@ -16,7 +16,7 @@ // | Author: Stig Bakken <ssb@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Config.php,v 1.35.2.7 2003/06/18 22:32:04 pajoye Exp $ +// $Id: Config.php,v 1.35.2.7.2.1 2003/06/24 01:59:18 sas Exp $ require_once 'PEAR.php'; require_once 'System.php'; @@ -73,7 +73,7 @@ if (getenv('PHP_PEAR_EXTENSION_DIR')) { define('PEAR_CONFIG_DEFAULT_EXT_DIR', getenv('PHP_PEAR_EXTENSION_DIR')); } else { - if (!ini_get('extension_dir')) { + if (ini_get('extension_dir')) { define('PEAR_CONFIG_DEFAULT_EXT_DIR', ini_get('extension_dir')); } elseif (defined('PEAR_EXTENSION_DIR') && @is_dir(PEAR_EXTENSION_DIR)) { define('PEAR_CONFIG_DEFAULT_EXT_DIR', PEAR_EXTENSION_DIR); Index: php-src/pear/PEAR/Dependency.php diff -u php-src/pear/PEAR/Dependency.php:1.14.4.7 php-src/pear/PEAR/Dependency.php:1.14.4.7.2.1 --- php-src/pear/PEAR/Dependency.php:1.14.4.7 Tue Jun 17 13:13:18 2003 +++ php-src/pear/PEAR/Dependency.php Mon Jun 23 21:59:18 2003 @@ -17,7 +17,7 @@ // | Stig Bakken <ssb@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Dependency.php,v 1.14.4.7 2003/06/17 17:13:18 pajoye Exp $ +// $Id: Dependency.php,v 1.14.4.7.2.1 2003/06/24 01:59:18 sas Exp $ require_once "PEAR.php"; Index: php-src/pear/PEAR/Installer.php diff -u php-src/pear/PEAR/Installer.php:1.81.2.7 php-src/pear/PEAR/Installer.php:1.81.2.7.2.1 --- php-src/pear/PEAR/Installer.php:1.81.2.7 Tue Jun 17 13:13:18 2003 +++ php-src/pear/PEAR/Installer.php Mon Jun 23 21:59:18 2003 @@ -18,7 +18,7 @@ // | Martin Jansen <mj@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Installer.php,v 1.81.2.7 2003/06/17 17:13:18 pajoye Exp $ +// $Id: Installer.php,v 1.81.2.7.2.1 2003/06/24 01:59:18 sas Exp $ require_once 'PEAR/Common.php'; require_once 'PEAR/Registry.php'; Index: php-src/pear/PEAR/Packager.php diff -u php-src/pear/PEAR/Packager.php:1.43.2.4 php-src/pear/PEAR/Packager.php:1.43.2.4.2.1 --- php-src/pear/PEAR/Packager.php:1.43.2.4 Tue Jun 17 13:13:18 2003 +++ php-src/pear/PEAR/Packager.php Mon Jun 23 21:59:18 2003 @@ -17,7 +17,7 @@ // | Tomas V.V.Cox <cox@idecnet.com> | // +----------------------------------------------------------------------+ // -// $Id: Packager.php,v 1.43.2.4 2003/06/17 17:13:18 pajoye Exp $ +// $Id: Packager.php,v 1.43.2.4.2.1 2003/06/24 01:59:18 sas Exp $ require_once 'PEAR/Common.php'; require_once 'System.php'; Index: php-src/pear/PEAR/Registry.php diff -u php-src/pear/PEAR/Registry.php:1.35.2.6 php-src/pear/PEAR/Registry.php:1.35.2.6.2.1 --- php-src/pear/PEAR/Registry.php:1.35.2.6 Tue Jun 17 13:13:18 2003 +++ php-src/pear/PEAR/Registry.php Mon Jun 23 21:59:18 2003 @@ -18,7 +18,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: Registry.php,v 1.35.2.6 2003/06/17 17:13:18 pajoye Exp $ +// $Id: Registry.php,v 1.35.2.6.2.1 2003/06/24 01:59:18 sas Exp $ /* TODO: @@ -155,7 +155,23 @@ */ function _packageFileName($package) { - return "{$this->statedir}/{$package}.reg"; + if (is_file("{$this->statedir}/{$package}.reg")) { + return "{$this->statedir}/{$package}.reg"; + } + /** + * Iterate through the directory to find the matching + * registry file, even if it has been provided in + * another case (foobar vs. FooBar) + */ + $package = strtolower($package); + if ($handle = opendir($this->statedir)) { + while (false !== ($file = readdir($handle))) { + if (strtolower($file) == $package . ".reg") { + return "{$this->statedir}/{$file}"; + } + } + closedir($handle); + } } // }}} Index: php-src/pear/PEAR/Remote.php diff -u php-src/pear/PEAR/Remote.php:1.34.2.6 php-src/pear/PEAR/Remote.php:1.34.2.6.2.1 --- php-src/pear/PEAR/Remote.php:1.34.2.6 Tue Jun 17 13:13:18 2003 +++ php-src/pear/PEAR/Remote.php Mon Jun 23 21:59:18 2003 @@ -16,7 +16,7 @@ // | Author: Stig Bakken <ssb@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Remote.php,v 1.34.2.6 2003/06/17 17:13:18 pajoye Exp $ +// $Id: Remote.php,v 1.34.2.6.2.1 2003/06/24 01:59:18 sas Exp $ require_once 'PEAR.php'; require_once 'PEAR/Config.php'; Index: php-src/pear/PEAR/Command/Auth.php diff -u php-src/pear/PEAR/Command/Auth.php:1.10.4.6 php-src/pear/PEAR/Command/Auth.php:1.10.4.6.2.1 --- php-src/pear/PEAR/Command/Auth.php:1.10.4.6 Tue Jun 17 13:13:18 2003 +++ php-src/pear/PEAR/Command/Auth.php Mon Jun 23 21:59:18 2003 @@ -16,7 +16,7 @@ // | Author: Stig Bakken <ssb@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Auth.php,v 1.10.4.6 2003/06/17 17:13:18 pajoye Exp $ +// $Id: Auth.php,v 1.10.4.6.2.1 2003/06/24 01:59:18 sas Exp $ require_once "PEAR/Command/Common.php"; require_once "PEAR/Remote.php"; Index: php-src/pear/PEAR/Command/Build.php diff -u php-src/pear/PEAR/Command/Build.php:1.3.4.6 php-src/pear/PEAR/Command/Build.php:1.3.4.6.2.1 --- php-src/pear/PEAR/Command/Build.php:1.3.4.6 Tue Jun 17 13:13:18 2003 +++ php-src/pear/PEAR/Command/Build.php Mon Jun 23 21:59:18 2003 @@ -18,7 +18,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: Build.php,v 1.3.4.6 2003/06/17 17:13:18 pajoye Exp $ +// $Id: Build.php,v 1.3.4.6.2.1 2003/06/24 01:59:18 sas Exp $ require_once "PEAR/Command/Common.php"; require_once "PEAR/Builder.php"; Index: php-src/pear/PEAR/Command/Common.php diff -u php-src/pear/PEAR/Command/Common.php:1.19.2.6 php-src/pear/PEAR/Command/Common.php:1.19.2.6.2.1 --- php-src/pear/PEAR/Command/Common.php:1.19.2.6 Tue Jun 17 13:13:18 2003 +++ php-src/pear/PEAR/Command/Common.php Mon Jun 23 21:59:18 2003 @@ -16,7 +16,7 @@ // | Author: Stig Sæther Bakken <ssb@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Common.php,v 1.19.2.6 2003/06/17 17:13:18 pajoye Exp $ +// $Id: Common.php,v 1.19.2.6.2.1 2003/06/24 01:59:18 sas Exp $ require_once "PEAR.php"; Index: php-src/pear/PEAR/Command/Config.php diff -u php-src/pear/PEAR/Command/Config.php:1.18.4.8 php-src/pear/PEAR/Command/Config.php:1.18.4.8.2.1 --- php-src/pear/PEAR/Command/Config.php:1.18.4.8 Tue Jun 17 13:13:18 2003 +++ php-src/pear/PEAR/Command/Config.php Mon Jun 23 21:59:18 2003 @@ -18,7 +18,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: Config.php,v 1.18.4.8 2003/06/17 17:13:18 pajoye Exp $ +// $Id: Config.php,v 1.18.4.8.2.1 2003/06/24 01:59:18 sas Exp $ require_once "PEAR/Command/Common.php"; require_once "PEAR/Config.php"; Index: php-src/pear/PEAR/Command/Install.php diff -u php-src/pear/PEAR/Command/Install.php:1.38.2.7 php-src/pear/PEAR/Command/Install.php:1.38.2.7.2.1 --- php-src/pear/PEAR/Command/Install.php:1.38.2.7 Tue Jun 17 13:13:18 2003 +++ php-src/pear/PEAR/Command/Install.php Mon Jun 23 21:59:18 2003 @@ -16,7 +16,7 @@ // | Author: Stig Sæther Bakken <ssb@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Install.php,v 1.38.2.7 2003/06/17 17:13:18 pajoye Exp $ +// $Id: Install.php,v 1.38.2.7.2.1 2003/06/24 01:59:18 sas Exp $ require_once "PEAR/Command/Common.php"; require_once "PEAR/Installer.php"; Index: php-src/pear/PEAR/Command/Package.php diff -u php-src/pear/PEAR/Command/Package.php:1.42.2.8 php-src/pear/PEAR/Command/Package.php:1.42.2.8.2.1 --- php-src/pear/PEAR/Command/Package.php:1.42.2.8 Tue Jun 17 13:13:18 2003 +++ php-src/pear/PEAR/Command/Package.php Mon Jun 23 21:59:18 2003 @@ -17,7 +17,7 @@ // | Martin Jansen <mj@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Package.php,v 1.42.2.8 2003/06/17 17:13:18 pajoye Exp $ +// $Id: Package.php,v 1.42.2.8.2.1 2003/06/24 01:59:18 sas Exp $ require_once 'PEAR/Common.php'; require_once 'PEAR/Command/Common.php'; Index: php-src/pear/PEAR/Command/Registry.php diff -u php-src/pear/PEAR/Command/Registry.php:1.24.4.8 php-src/pear/PEAR/Command/Registry.php:1.24.4.8.2.1 --- php-src/pear/PEAR/Command/Registry.php:1.24.4.8 Tue Jun 17 13:13:18 2003 +++ php-src/pear/PEAR/Command/Registry.php Mon Jun 23 21:59:18 2003 @@ -17,7 +17,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: Registry.php,v 1.24.4.8 2003/06/17 17:13:18 pajoye Exp $ +// $Id: Registry.php,v 1.24.4.8.2.1 2003/06/24 01:59:18 sas Exp $ require_once 'PEAR/Command/Common.php'; require_once 'PEAR/Registry.php'; Index: php-src/pear/PEAR/Command/Remote.php diff -u php-src/pear/PEAR/Command/Remote.php:1.22.2.7 php-src/pear/PEAR/Command/Remote.php:1.22.2.7.2.1 --- php-src/pear/PEAR/Command/Remote.php:1.22.2.7 Tue Jun 17 13:13:18 2003 +++ php-src/pear/PEAR/Command/Remote.php Mon Jun 23 21:59:18 2003 @@ -17,7 +17,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: Remote.php,v 1.22.2.7 2003/06/17 17:13:18 pajoye Exp $ +// $Id: Remote.php,v 1.22.2.7.2.1 2003/06/24 01:59:18 sas Exp $ require_once 'PEAR/Command/Common.php'; require_once 'PEAR/Common.php'; Index: php-src/pear/PEAR/Frontend/CLI.php diff -u php-src/pear/PEAR/Frontend/CLI.php:1.25.2.7 php-src/pear/PEAR/Frontend/CLI.php:1.25.2.7.2.1 --- php-src/pear/PEAR/Frontend/CLI.php:1.25.2.7 Tue Jun 17 13:13:19 2003 +++ php-src/pear/PEAR/Frontend/CLI.php Mon Jun 23 21:59:18 2003 @@ -16,7 +16,7 @@ | Author: Stig Sæther Bakken <ssb@php.net> | +----------------------------------------------------------------------+ - $Id: CLI.php,v 1.25.2.7 2003/06/17 17:13:19 pajoye Exp $ + $Id: CLI.php,v 1.25.2.7.2.1 2003/06/24 01:59:18 sas Exp $ */ require_once "PEAR.php"; Index: php-src/pear/scripts/pear.bat diff -u php-src/pear/scripts/pear.bat:1.10.4.4 php-src/pear/scripts/pear.bat:1.10.4.4.4.1 --- php-src/pear/scripts/pear.bat:1.10.4.4 Fri Apr 11 19:48:39 2003 +++ php-src/pear/scripts/pear.bat Mon Jun 23 21:59:18 2003 @@ -5,10 +5,10 @@ REM ---------------------------------------------------------------------- REM Copyright (c) 1997-2002 The PHP Group REM ---------------------------------------------------------------------- -REM This source file is subject to version 2.02 of the PHP license, +REM This source file is subject to version 3.0 of the PHP license, REM that is bundled with this package in the file LICENSE, and is REM available at through the world-wide-web at -REM http://www.php.net/license/2_02.txt. +REM http://www.php.net/license/3_0.txt. REM If you did not receive a copy of the PHP license and are unable to REM obtain it through the world-wide-web, please send a note to REM license@php.net so we can mail you a copy immediately. @@ -16,7 +16,7 @@ REM Authors: Alexander Merz (alexmerz@php.net) REM ---------------------------------------------------------------------- REM -REM $Id: pear.bat,v 1.10.4.4 2003/04/11 23:48:39 ssb Exp $ +REM $Id: pear.bat,v 1.10.4.4.4.1 2003/06/24 01:59:18 sas Exp $ REM change this lines to match the paths of your system REM ------------------- Index: php-src/pear/scripts/pearcmd.php diff -u php-src/pear/scripts/pearcmd.php:1.1.2.2 php-src/pear/scripts/pearcmd.php:1.1.2.2.2.1 --- php-src/pear/scripts/pearcmd.php:1.1.2.2 Tue Jun 17 13:13:19 2003 +++ php-src/pear/scripts/pearcmd.php Mon Jun 23 21:59:18 2003 @@ -18,7 +18,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: pearcmd.php,v 1.1.2.2 2003/06/17 17:13:19 pajoye Exp $ +// $Id: pearcmd.php,v 1.1.2.2.2.1 2003/06/24 01:59:18 sas Exp $ ob_end_clean(); /** Index: php-src/pear/scripts/pearwin.php diff -u php-src/pear/scripts/pearwin.php:1.8.10.3 php-src/pear/scripts/pearwin.php:1.8.10.3.2.1 --- php-src/pear/scripts/pearwin.php:1.8.10.3 Tue Jun 17 13:13:19 2003 +++ php-src/pear/scripts/pearwin.php Mon Jun 23 21:59:18 2003 @@ -17,7 +17,7 @@ // | Tomas V.V.Cox <cox@idecnet.com> | // +----------------------------------------------------------------------+ // -// $Id: pearwin.php,v 1.8.10.3 2003/06/17 17:13:19 pajoye Exp $ +// $Id: pearwin.php,v 1.8.10.3.2.1 2003/06/24 01:59:18 sas Exp $ require_once 'PEAR.php'; require_once 'PEAR/Common.php'; Index: php-src/pear/PEAR/Command/Mirror.php +++ php-src/pear/PEAR/Command/Mirror.php <?php // // +----------------------------------------------------------------------+ // | PHP Version 4 | // +----------------------------------------------------------------------+ // | Copyright (c) 1997-2003 The PHP Group | // +----------------------------------------------------------------------+ // | This source file is subject to version 2.02 of the PHP license, | // | that is bundled with this package in the file LICENSE, and is | // | available at through the world-wide-web at | // | http://www.php.net/license/2_02.txt. | // | If you did not receive a copy of the PHP license and are unable to | // | obtain it through the world-wide-web, please send a note to | // | license@php.net so we can mail you a copy immediately. | // +----------------------------------------------------------------------+ // | Author: Alexander Merz <alexmerz@php.net> | // | | // +----------------------------------------------------------------------+ // // $Id: Mirror.php,v 1.1 2003/05/05 07:07:51 alexmerz Exp $ require_once "PEAR/Command/Common.php"; require_once "PEAR/Command.php"; require_once "PEAR/Remote.php"; require_once "PEAR.php"; /** * PEAR commands for providing file mirrors * */ class PEAR_Command_Mirror extends PEAR_Command_Common { // {{{ properties var $commands = array( 'download-all' => array( 'summary' => 'Downloads each avaible Package from master_server', 'function' => 'doDownloadAll', 'shortcut' => 'da', 'options' => array(), 'doc' => ' Request a list of avaible Packages from the Package-Server (master_server) and downloads them to current working dir' ), ); // }}} // {{{ constructor /** * PEAR_Command_Mirror constructor. * * @access public * @param object PEAR_Frontend a reference to an frontend * @param object PEAR_Config a reference to the configuration data */ function PEAR_Command_Mirror(&$ui, &$config) { parent::PEAR_Command_Common($ui, $config); } // }}} // {{{ doDownloadAll() /** * retrieves a list of avaible Packages from master server * and downloads them * * @access public * @param string $command the command * @param array $options the command options before the command * @param array $params the stuff after the command name * @return bool true if succesful * @throw PEAR_Error */ 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)); } return true; } // }}} }