cvs: pear-core / package-PEAR.xml /PEAR Installer.php /PEAR/Command Install.php /tests download_test_classes.php.inc
| From: | Greg Beaver | Date: | Fri, 22 Oct 2004 23:17:28 +0000 |
| Subject: | cvs: pear-core / package-PEAR.xml /PEAR Installer.php /PEAR/Command Install.php /tests download_test_classes.php.inc | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-1125@lists.php.net to get a copy of this message | ||
cellog Fri Oct 22 19:17:28 2004 EDT
Modified files:
/pear-core/PEAR/Command Install.php
/pear-core/PEAR Installer.php
/pear-core package-PEAR.xml
/pear-core/tests download_test_classes.php.inc
Log:
implement #1891
fix downloader test class
implement verification of the possibility to rename a file, and abort if it
the target file exists. This will happen when installing an extension
over an existing extension that is in use.
implement backup of existing install, so that if suddenly a rename fails, the existing install can
be restored.
fix uninstall
http://cvs.php.net/diff.php/pear-core/PEAR/Command/Install.php?r1=1.66&r2=1.67&ty=u Index: pear-core/PEAR/Command/Install.php diff -u pear-core/PEAR/Command/Install.php:1.66 pear-core/PEAR/Command/Install.php:1.67 --- pear-core/PEAR/Command/Install.php:1.66 Thu Oct 21 13:25:08 2004 +++ pear-core/PEAR/Command/Install.php Fri Oct 22 19:17:26 2004 @@ -16,7 +16,7 @@ // | Author: Stig Sæther Bakken <ssb@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Install.php,v 1.66 2004/10/21 17:25:08 cellog Exp $ +// $Id: Install.php,v 1.67 2004/10/22 23:17:26 cellog Exp $ require_once "PEAR/Command/Common.php"; require_once "PEAR/Installer.php"; @@ -255,13 +255,39 @@ // }}} + /** + * For unit testing purposes + */ + function &getDownloader(&$ui, $options, &$config) + { + $a = &new PEAR_Downloader($ui, $options, $config); + return $a; + } + + /** + * For unit testing purposes + */ + function &getInstaller(&$ui) + { + $a = &new PEAR_Installer($ui); + return $a; + } + + /** + * For unit testing purposes + */ + function &getRemote(&$config) + { + $a = &new PEAR_Remote($config); + return $a; + } // {{{ doInstall() function doInstall($command, $options, $params) { require_once 'PEAR/Downloader.php'; if (empty($this->installer)) { - $this->installer = &new PEAR_Installer($this->ui); + $this->installer = &$this->getInstaller($this->ui); } if ($command == 'upgrade') { $options['upgrade'] = true; @@ -269,8 +295,7 @@ if ($command == 'upgrade-all') { include_once "PEAR/Remote.php"; $options['upgrade'] = true; - $reg = new PEAR_Registry($this->config->get('php_dir')); - $remote = &new PEAR_Remote($this->config, $reg); + $remote = &$this->getRemote($this->config); $savechannel = $this->config->get('default_channel'); foreach ($reg->listChannels as $channel) { $this->config->set('default_channel', $channel); @@ -304,7 +329,7 @@ } $this->config->set('default_channel', $savechannel); } - $this->downloader = &new PEAR_Downloader($this->ui, $options, $this->config); + $this->downloader = &$this->getDownloader($this->ui, $options, $this->config); $errors = array(); $downloaded = array(); $downloaded = &$this->downloader->download($params); @@ -405,7 +430,7 @@ $params = $newparams; // twist this to use it to check on whether dependent packages are also being uninstalled // for circular dependencies like subpackages - $this->installer->setDownloadedPackages($newparams); + $this->installer->setUninstallPackages($newparams); $params = array_merge($params, $badparams); foreach ($params as $pkg) { $this->installer->pushErrorHandling(PEAR_ERROR_RETURN); http://cvs.php.net/diff.php/pear-core/PEAR/Installer.php?r1=1.168&r2=1.169&ty=u Index: pear-core/PEAR/Installer.php diff -u pear-core/PEAR/Installer.php:1.168 pear-core/PEAR/Installer.php:1.169 --- pear-core/PEAR/Installer.php:1.168 Thu Oct 21 13:25:09 2004 +++ pear-core/PEAR/Installer.php Fri Oct 22 19:17:27 2004 @@ -16,9 +16,10 @@ // | Authors: Stig Bakken <ssb@php.net> | // | Tomas V.V.Cox <cox@idecnet.com> | // | Martin Jansen <mj@php.net> | +// | Greg Beaver <cellog@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Installer.php,v 1.168 2004/10/21 17:25:09 cellog Exp $ +// $Id: Installer.php,v 1.169 2004/10/22 23:17:27 cellog Exp $ require_once 'PEAR/Downloader.php'; require_once 'PEAR/Task/Common.php'; @@ -127,18 +128,25 @@ } // }}} + function _removeBackups($files) + { + foreach ($files as $path) { + $this->addFileOperation('removebackup', array($path)); + } + } + // {{{ _deletePackageFiles() /** * Delete a package's installed files, does not remove empty directories. * - * @param string $package package name - * + * @param string package name + * @param string channel name + * @param bool if true, then files are backed up first * @return bool TRUE on success, or a PEAR error on failure - * * @access private */ - function _deletePackageFiles($package, $channel = false) + function _deletePackageFiles($package, $channel = false, $backup = false) { if (!$channel) { $channel = 'pear.php.net'; @@ -148,15 +156,23 @@ } $filelist = $this->_registry->packageInfo($package, 'filelist', $channel); if ($filelist == null) { - return $this->raiseError("$channel::$package not installed"); + return $this->raiseError("$channel/$package not installed"); } + $ret = array(); foreach ($filelist as $file => $props) { if (empty($props['installed_as'])) { continue; } $path = $this->_prependPath($props['installed_as'], $this->installroot); + if ($backup) { + $this->addFileOperation('backup', array($path)); + $ret[] = $path; + } $this->addFileOperation('delete', array($path)); } + if ($backup) { + return $ret; + } return true; } @@ -182,7 +198,14 @@ include_once "OS/Guess.php"; $os = new OS_Guess(); } - if (!$os->matchSignature($atts['platform'])) { + if (strlen($atts['platform']) && $atts['platform']{0} == '!') { + $negate = true; + $platform = substr($atts['platform'], 1); + } else { + $negate = false; + $platform = $atts['platform']; + } + if ((bool) $os->matchSignature($platform) === $negate) { $this->log(3, "skipped $file (meant for $atts[platform], we are ".$os->getSignature().")"); return PEAR_INSTALLER_SKIPPED; } @@ -506,6 +529,8 @@ * @see startFileTransaction() * @param string $type This can be one of: * - rename: rename a file ($data has 2 values) + * - backup: backup an existing file ($data has 1 value) + * - removebackup: clean up backups created during install ($data has 1 value) * - chmod: change permissions on a file ($data has 2 values) * - delete: delete a file ($data has 1 value) * - rmdir: delete a directory if empty ($data has 1 value) @@ -580,8 +605,18 @@ $this->log(2, "warning: file $data[0] doesn't exist, can't be deleted"); } // check that directory is writable - if (file_exists($data[0]) && !is_writable(dirname($data[0]))) { - $errors[] = "permission denied ($type): $data[0]"; + if (file_exists($data[0])) { + if (!is_writable(dirname($data[0]))) { + $errors[] = "permission denied ($type): $data[0]"; + } else { + // make sure the file to be deleted can be opened for writing + $fp = false; + if (!is_dir($data[0]) && !($fp = @fopen($data[0], 'a'))) { + $errors[] = "permission denied ($type): $data[0]"; + } elseif ($fp) { + fclose($fp); + } + } } break; } @@ -600,8 +635,21 @@ foreach ($this->file_operations as $tr) { list($type, $data) = $tr; switch ($type) { + case 'backup': + @copy($data[0], $data[0] . '.bak'); + $this->log(3, "+ backup $data[0] to $data[0].bak"); + break; + case 'removebackup': + @unlink($data[0] . '.bak'); + $this->log(3, "+ rm backup of $data[0] ($data[0].bak)"); + break; case 'rename': - @unlink($data[1]); + $test = @unlink($data[1]); + if (!$test && file_exists($data[1])) { + $this->log(1, 'Could not delete ' . $data[1] . ', cannot rename ' . + $data[0]); + return false; + } @rename($data[0], $data[1]); $this->log(3, "+ mv $data[0] $data[1]"); break; @@ -651,6 +699,13 @@ foreach ($this->file_operations as $tr) { list($type, $data) = $tr; switch ($type) { + case 'backup': + if (file_exists($data[0] . '.bak')) { + @unlink($data[0]); + @copy($data[0] . '.bak', $data[0]); + $this->log(3, "+ restore $data[0] from $data[0].bak"); + } + break; case 'rename': @unlink($data[0]); $this->log(3, "+ rm $data[0]"); @@ -768,6 +823,16 @@ $this->_downloadedPackages = &$pkgs; } + /** + * Set the list of PEAR_Downloader_Package objects to allow more sane + * dependency validation + * @param array + */ + function setUninstallPackages(&$pkgs) + { + $this->_downloadedPackages = &$pkgs; + } + function getInstallPackages() { return $this->_downloadedPackages; @@ -914,8 +979,10 @@ } if (empty($options['register-only'])) { // when upgrading, remove old release's files first: - if (PEAR::isError($err = $this->_deletePackageFiles($pkgname, $channel))) { + if (PEAR::isError($err = $this->_deletePackageFiles($pkgname, $channel, true))) { return $this->raiseError($err); + } else { + $backedup = $err; } } } @@ -989,6 +1056,9 @@ // }}} } + if (isset($backedup)) { + $this->_removeBackups($backedup); + } if (!$this->commitFileTransaction()) { $this->rollbackFileTransaction(); $this->configSet('default_channel', $savechannel); http://cvs.php.net/diff.php/pear-core/package-PEAR.xml?r1=1.126&r2=1.127&ty=u Index: pear-core/package-PEAR.xml diff -u pear-core/package-PEAR.xml:1.126 pear-core/package-PEAR.xml:1.127 --- pear-core/package-PEAR.xml:1.126 Thu Oct 21 01:09:37 2004 +++ pear-core/package-PEAR.xml Fri Oct 22 19:17:28 2004 @@ -4,15 +4,16 @@ <name>PEAR</name> <summary>PEAR Base System</summary> <description>The PEAR package contains: - * the PEAR base class - * the PEAR_Error error handling mechanism - * the alpha-quality PEAR_ErrorStack advanced error handling mechanism * the PEAR installer, for creating, distributing and installing packages + * the alpha-quality PEAR_Exception PHP5 error handling mechanism + * the beta-quality PEAR_ErrorStack advanced error handling mechanism + * the PEAR_Error error handling mechanism * the OS_Guess class for retrieving info about the OS where PHP is running on - * the System class for quick handling common operations + * the System class for quick handling of common operations with files and directories + * the PEAR base class </description> <maintainers> <maintainer> @@ -22,35 +23,35 @@ <email>stig@php.net</email> </maintainer> <maintainer> + <user>cellog</user> + <role>lead</role> + <name>Greg Beaver</name> + <email>cellog@php.net</email> + </maintainer> + <maintainer> <user>cox</user> <role>lead</role> <name>Tomas V.V.Cox</name> <email>cox@idecnet.com</email> </maintainer> <maintainer> - <user>mj</user> - <role>developer</role> - <name>Martin Jansen</name> - <email>mj@php.net</email> - </maintainer> - <maintainer> <user>pajoye</user> <role>lead</role> <name>Pierre-Alain Joye</name> <email>pajoye@pearfr.org</email> </maintainer> <maintainer> - <user>cellog</user> - <role>lead</role> - <name>Greg Beaver</name> - <email>cellog@php.net</email> + <user>mj</user> + <role>developer</role> + <name>Martin Jansen</name> + <email>mj@php.net</email> </maintainer> </maintainers> <release> - <version>1.4.0dev13</version> - <date>2004-09-30</date> + <version>1.4.0a1</version> + <date>2004-10-21</date> <license>PHP License</license> - <state>devel</state> + <state>alpha</state> <notes> Installer Roles/Tasks: @@ -73,10 +74,6 @@ Installer Channel Support: - * MAJOR BC break in 1.4.0dev12 - default channel is named pear.php.net, - with alias pear. - As a consequence, after upgrade, delete the .registry/pear.reg file, - and run "pear list" to re-order the channel registry * channel XSD is available on pearweb * add channel.listAll and channel.update to default PEAR protocols * add ability to "pear channel-update channelname" to @@ -192,7 +189,7 @@ <file role="php" name="Guess.php"/> </dir> <dir name="scripts" baseinstalldir="/"> - <file role="script" install-as="pear" name="pear.sh"> + <file role="script" install-as="pear" name="pear.sh" platform="!windows"> <replace from="@php_bin@" to="php_bin" type="pear-config"/> <replace from="@php_dir@" to="php_dir" type="pear-config"/> <replace from="@pear_version@" to="version" type="package-info"/> http://cvs.php.net/diff.php/pear-core/tests/download_test_classes.php.inc?r1=1.8&r2=1.9&ty=u Index: pear-core/tests/download_test_classes.php.inc diff -u pear-core/tests/download_test_classes.php.inc:1.8 pear-core/tests/download_test_classes.php.inc:1.9 --- pear-core/tests/download_test_classes.php.inc:1.8 Thu Oct 21 01:09:37 2004 +++ pear-core/tests/download_test_classes.php.inc Fri Oct 22 19:17:28 2004 @@ -475,7 +475,7 @@ $this->pushError('No valid packages found', PEAR_INSTALLER_FAILED); } PEAR::pushErrorHandling(PEAR_ERROR_RETURN); - $err = PEAR_Downloader_Package::analyzeDependencies($params); + $err = $this->analyzeDependencies($params); PEAR::popErrorHandling(); if (PEAR::isError($err)) { $this->pushError($err->getMessage());
http://cvs.php.net/diff.php/pear-core/PEAR/Command/Install.php?r1=1.66&r2=1.67&ty=u Index: pear-core/PEAR/Command/Install.php diff -u pear-core/PEAR/Command/Install.php:1.66 pear-core/PEAR/Command/Install.php:1.67 --- pear-core/PEAR/Command/Install.php:1.66 Thu Oct 21 13:25:08 2004 +++ pear-core/PEAR/Command/Install.php Fri Oct 22 19:17:26 2004 @@ -16,7 +16,7 @@ // | Author: Stig Sæther Bakken <ssb@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Install.php,v 1.66 2004/10/21 17:25:08 cellog Exp $ +// $Id: Install.php,v 1.67 2004/10/22 23:17:26 cellog Exp $ require_once "PEAR/Command/Common.php"; require_once "PEAR/Installer.php"; @@ -255,13 +255,39 @@ // }}} + /** + * For unit testing purposes + */ + function &getDownloader(&$ui, $options, &$config) + { + $a = &new PEAR_Downloader($ui, $options, $config); + return $a; + } + + /** + * For unit testing purposes + */ + function &getInstaller(&$ui) + { + $a = &new PEAR_Installer($ui); + return $a; + } + + /** + * For unit testing purposes + */ + function &getRemote(&$config) + { + $a = &new PEAR_Remote($config); + return $a; + } // {{{ doInstall() function doInstall($command, $options, $params) { require_once 'PEAR/Downloader.php'; if (empty($this->installer)) { - $this->installer = &new PEAR_Installer($this->ui); + $this->installer = &$this->getInstaller($this->ui); } if ($command == 'upgrade') { $options['upgrade'] = true; @@ -269,8 +295,7 @@ if ($command == 'upgrade-all') { include_once "PEAR/Remote.php"; $options['upgrade'] = true; - $reg = new PEAR_Registry($this->config->get('php_dir')); - $remote = &new PEAR_Remote($this->config, $reg); + $remote = &$this->getRemote($this->config); $savechannel = $this->config->get('default_channel'); foreach ($reg->listChannels as $channel) { $this->config->set('default_channel', $channel); @@ -304,7 +329,7 @@ } $this->config->set('default_channel', $savechannel); } - $this->downloader = &new PEAR_Downloader($this->ui, $options, $this->config); + $this->downloader = &$this->getDownloader($this->ui, $options, $this->config); $errors = array(); $downloaded = array(); $downloaded = &$this->downloader->download($params); @@ -405,7 +430,7 @@ $params = $newparams; // twist this to use it to check on whether dependent packages are also being uninstalled // for circular dependencies like subpackages - $this->installer->setDownloadedPackages($newparams); + $this->installer->setUninstallPackages($newparams); $params = array_merge($params, $badparams); foreach ($params as $pkg) { $this->installer->pushErrorHandling(PEAR_ERROR_RETURN); http://cvs.php.net/diff.php/pear-core/PEAR/Installer.php?r1=1.168&r2=1.169&ty=u Index: pear-core/PEAR/Installer.php diff -u pear-core/PEAR/Installer.php:1.168 pear-core/PEAR/Installer.php:1.169 --- pear-core/PEAR/Installer.php:1.168 Thu Oct 21 13:25:09 2004 +++ pear-core/PEAR/Installer.php Fri Oct 22 19:17:27 2004 @@ -16,9 +16,10 @@ // | Authors: Stig Bakken <ssb@php.net> | // | Tomas V.V.Cox <cox@idecnet.com> | // | Martin Jansen <mj@php.net> | +// | Greg Beaver <cellog@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Installer.php,v 1.168 2004/10/21 17:25:09 cellog Exp $ +// $Id: Installer.php,v 1.169 2004/10/22 23:17:27 cellog Exp $ require_once 'PEAR/Downloader.php'; require_once 'PEAR/Task/Common.php'; @@ -127,18 +128,25 @@ } // }}} + function _removeBackups($files) + { + foreach ($files as $path) { + $this->addFileOperation('removebackup', array($path)); + } + } + // {{{ _deletePackageFiles() /** * Delete a package's installed files, does not remove empty directories. * - * @param string $package package name - * + * @param string package name + * @param string channel name + * @param bool if true, then files are backed up first * @return bool TRUE on success, or a PEAR error on failure - * * @access private */ - function _deletePackageFiles($package, $channel = false) + function _deletePackageFiles($package, $channel = false, $backup = false) { if (!$channel) { $channel = 'pear.php.net'; @@ -148,15 +156,23 @@ } $filelist = $this->_registry->packageInfo($package, 'filelist', $channel); if ($filelist == null) { - return $this->raiseError("$channel::$package not installed"); + return $this->raiseError("$channel/$package not installed"); } + $ret = array(); foreach ($filelist as $file => $props) { if (empty($props['installed_as'])) { continue; } $path = $this->_prependPath($props['installed_as'], $this->installroot); + if ($backup) { + $this->addFileOperation('backup', array($path)); + $ret[] = $path; + } $this->addFileOperation('delete', array($path)); } + if ($backup) { + return $ret; + } return true; } @@ -182,7 +198,14 @@ include_once "OS/Guess.php"; $os = new OS_Guess(); } - if (!$os->matchSignature($atts['platform'])) { + if (strlen($atts['platform']) && $atts['platform']{0} == '!') { + $negate = true; + $platform = substr($atts['platform'], 1); + } else { + $negate = false; + $platform = $atts['platform']; + } + if ((bool) $os->matchSignature($platform) === $negate) { $this->log(3, "skipped $file (meant for $atts[platform], we are ".$os->getSignature().")"); return PEAR_INSTALLER_SKIPPED; } @@ -506,6 +529,8 @@ * @see startFileTransaction() * @param string $type This can be one of: * - rename: rename a file ($data has 2 values) + * - backup: backup an existing file ($data has 1 value) + * - removebackup: clean up backups created during install ($data has 1 value) * - chmod: change permissions on a file ($data has 2 values) * - delete: delete a file ($data has 1 value) * - rmdir: delete a directory if empty ($data has 1 value) @@ -580,8 +605,18 @@ $this->log(2, "warning: file $data[0] doesn't exist, can't be deleted"); } // check that directory is writable - if (file_exists($data[0]) && !is_writable(dirname($data[0]))) { - $errors[] = "permission denied ($type): $data[0]"; + if (file_exists($data[0])) { + if (!is_writable(dirname($data[0]))) { + $errors[] = "permission denied ($type): $data[0]"; + } else { + // make sure the file to be deleted can be opened for writing + $fp = false; + if (!is_dir($data[0]) && !($fp = @fopen($data[0], 'a'))) { + $errors[] = "permission denied ($type): $data[0]"; + } elseif ($fp) { + fclose($fp); + } + } } break; } @@ -600,8 +635,21 @@ foreach ($this->file_operations as $tr) { list($type, $data) = $tr; switch ($type) { + case 'backup': + @copy($data[0], $data[0] . '.bak'); + $this->log(3, "+ backup $data[0] to $data[0].bak"); + break; + case 'removebackup': + @unlink($data[0] . '.bak'); + $this->log(3, "+ rm backup of $data[0] ($data[0].bak)"); + break; case 'rename': - @unlink($data[1]); + $test = @unlink($data[1]); + if (!$test && file_exists($data[1])) { + $this->log(1, 'Could not delete ' . $data[1] . ', cannot rename ' . + $data[0]); + return false; + } @rename($data[0], $data[1]); $this->log(3, "+ mv $data[0] $data[1]"); break; @@ -651,6 +699,13 @@ foreach ($this->file_operations as $tr) { list($type, $data) = $tr; switch ($type) { + case 'backup': + if (file_exists($data[0] . '.bak')) { + @unlink($data[0]); + @copy($data[0] . '.bak', $data[0]); + $this->log(3, "+ restore $data[0] from $data[0].bak"); + } + break; case 'rename': @unlink($data[0]); $this->log(3, "+ rm $data[0]"); @@ -768,6 +823,16 @@ $this->_downloadedPackages = &$pkgs; } + /** + * Set the list of PEAR_Downloader_Package objects to allow more sane + * dependency validation + * @param array + */ + function setUninstallPackages(&$pkgs) + { + $this->_downloadedPackages = &$pkgs; + } + function getInstallPackages() { return $this->_downloadedPackages; @@ -914,8 +979,10 @@ } if (empty($options['register-only'])) { // when upgrading, remove old release's files first: - if (PEAR::isError($err = $this->_deletePackageFiles($pkgname, $channel))) { + if (PEAR::isError($err = $this->_deletePackageFiles($pkgname, $channel, true))) { return $this->raiseError($err); + } else { + $backedup = $err; } } } @@ -989,6 +1056,9 @@ // }}} } + if (isset($backedup)) { + $this->_removeBackups($backedup); + } if (!$this->commitFileTransaction()) { $this->rollbackFileTransaction(); $this->configSet('default_channel', $savechannel); http://cvs.php.net/diff.php/pear-core/package-PEAR.xml?r1=1.126&r2=1.127&ty=u Index: pear-core/package-PEAR.xml diff -u pear-core/package-PEAR.xml:1.126 pear-core/package-PEAR.xml:1.127 --- pear-core/package-PEAR.xml:1.126 Thu Oct 21 01:09:37 2004 +++ pear-core/package-PEAR.xml Fri Oct 22 19:17:28 2004 @@ -4,15 +4,16 @@ <name>PEAR</name> <summary>PEAR Base System</summary> <description>The PEAR package contains: - * the PEAR base class - * the PEAR_Error error handling mechanism - * the alpha-quality PEAR_ErrorStack advanced error handling mechanism * the PEAR installer, for creating, distributing and installing packages + * the alpha-quality PEAR_Exception PHP5 error handling mechanism + * the beta-quality PEAR_ErrorStack advanced error handling mechanism + * the PEAR_Error error handling mechanism * the OS_Guess class for retrieving info about the OS where PHP is running on - * the System class for quick handling common operations + * the System class for quick handling of common operations with files and directories + * the PEAR base class </description> <maintainers> <maintainer> @@ -22,35 +23,35 @@ <email>stig@php.net</email> </maintainer> <maintainer> + <user>cellog</user> + <role>lead</role> + <name>Greg Beaver</name> + <email>cellog@php.net</email> + </maintainer> + <maintainer> <user>cox</user> <role>lead</role> <name>Tomas V.V.Cox</name> <email>cox@idecnet.com</email> </maintainer> <maintainer> - <user>mj</user> - <role>developer</role> - <name>Martin Jansen</name> - <email>mj@php.net</email> - </maintainer> - <maintainer> <user>pajoye</user> <role>lead</role> <name>Pierre-Alain Joye</name> <email>pajoye@pearfr.org</email> </maintainer> <maintainer> - <user>cellog</user> - <role>lead</role> - <name>Greg Beaver</name> - <email>cellog@php.net</email> + <user>mj</user> + <role>developer</role> + <name>Martin Jansen</name> + <email>mj@php.net</email> </maintainer> </maintainers> <release> - <version>1.4.0dev13</version> - <date>2004-09-30</date> + <version>1.4.0a1</version> + <date>2004-10-21</date> <license>PHP License</license> - <state>devel</state> + <state>alpha</state> <notes> Installer Roles/Tasks: @@ -73,10 +74,6 @@ Installer Channel Support: - * MAJOR BC break in 1.4.0dev12 - default channel is named pear.php.net, - with alias pear. - As a consequence, after upgrade, delete the .registry/pear.reg file, - and run "pear list" to re-order the channel registry * channel XSD is available on pearweb * add channel.listAll and channel.update to default PEAR protocols * add ability to "pear channel-update channelname" to @@ -192,7 +189,7 @@ <file role="php" name="Guess.php"/> </dir> <dir name="scripts" baseinstalldir="/"> - <file role="script" install-as="pear" name="pear.sh"> + <file role="script" install-as="pear" name="pear.sh" platform="!windows"> <replace from="@php_bin@" to="php_bin" type="pear-config"/> <replace from="@php_dir@" to="php_dir" type="pear-config"/> <replace from="@pear_version@" to="version" type="package-info"/> http://cvs.php.net/diff.php/pear-core/tests/download_test_classes.php.inc?r1=1.8&r2=1.9&ty=u Index: pear-core/tests/download_test_classes.php.inc diff -u pear-core/tests/download_test_classes.php.inc:1.8 pear-core/tests/download_test_classes.php.inc:1.9 --- pear-core/tests/download_test_classes.php.inc:1.8 Thu Oct 21 01:09:37 2004 +++ pear-core/tests/download_test_classes.php.inc Fri Oct 22 19:17:28 2004 @@ -475,7 +475,7 @@ $this->pushError('No valid packages found', PEAR_INSTALLER_FAILED); } PEAR::pushErrorHandling(PEAR_ERROR_RETURN); - $err = PEAR_Downloader_Package::analyzeDependencies($params); + $err = $this->analyzeDependencies($params); PEAR::popErrorHandling(); if (PEAR::isError($err)) { $this->pushError($err->getMessage());