cvs: pear-core / package-PEAR.xml package2.xml /PEAR/Command Registry.php
| From: | Greg Beaver | Date: | Sun, 19 Nov 2006 23:47:10 +0000 |
| Subject: | cvs: pear-core / package-PEAR.xml package2.xml /PEAR/Command Registry.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-5197@lists.php.net to get a copy of this message | ||
cellog Sun Nov 19 23:47:10 2006 UTC
Modified files:
/pear-core/PEAR/Command Registry.php
/pear-core package-PEAR.xml package2.xml
Log:
fix notice on invalid usage of shell-test, and provide
an error message
# noticed by Christian Weiske
http://cvs.php.net/viewvc.cgi/pear-core/PEAR/Command/Registry.php?r1=1.73&r2=1.74&diff_format=u
Index: pear-core/PEAR/Command/Registry.php
diff -u pear-core/PEAR/Command/Registry.php:1.73 pear-core/PEAR/Command/Registry.php:1.74
--- pear-core/PEAR/Command/Registry.php:1.73 Mon Sep 18 16:39:40 2006
+++ pear-core/PEAR/Command/Registry.php Sun Nov 19 23:47:10 2006
@@ -16,7 +16,7 @@
* @author Greg Beaver <cellog@php.net>
* @copyright 1997-2006 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: Registry.php,v 1.73 2006/09/18 16:39:40 cellog Exp $
+ * @version CVS: $Id: Registry.php,v 1.74 2006/11/19 23:47:10 cellog Exp $
* @link http://pear.php.net/package/PEAR
* @since File available since Release 0.1
*/
@@ -312,6 +312,9 @@
function doShellTest($command, $options, $params)
{
+ if (count($params) < 1) {
+ return PEAR::raiseError('ERROR, usage: pear shell-test packagename [[relation]
version]');
+ }
$this->pushErrorHandling(PEAR_ERROR_RETURN);
$reg = &$this->config->getRegistry();
$info = $reg->parsePackageName($params[0],
$this->config->get('default_channel'));
http://cvs.php.net/viewvc.cgi/pear-core/package-PEAR.xml?r1=1.405&r2=1.406&diff_format=u
Index: pear-core/package-PEAR.xml
diff -u pear-core/package-PEAR.xml:1.405 pear-core/package-PEAR.xml:1.406
--- pear-core/package-PEAR.xml:1.405 Sun Nov 19 21:44:37 2006
+++ pear-core/package-PEAR.xml Sun Nov 19 23:47:10 2006
@@ -95,6 +95,7 @@
* fix Bug #9208: Typo error on abstract PEAR_Task_Common::validXml() method
* fix Bug #9280: cannot install with --packagingroot package from non-php.net channel
* fix Bug #9307: Validator generates warning on empty <contents> tag
+ * fix shell-test command with invalid usage (noticed by Christian Weiske)
* implement Request #8827: add a yesno type handling for post-install scripts
</notes>
<provides type="class" name="OS_Guess"/>
http://cvs.php.net/viewvc.cgi/pear-core/package2.xml?r1=1.300&r2=1.301&diff_format=u
Index: pear-core/package2.xml
diff -u pear-core/package2.xml:1.300 pear-core/package2.xml:1.301
--- pear-core/package2.xml:1.300 Sun Nov 19 21:43:29 2006
+++ pear-core/package2.xml Sun Nov 19 23:47:10 2006
@@ -100,6 +100,7 @@
* fix Bug #9208: Typo error on abstract PEAR_Task_Common::validXml() method
* fix Bug #9280: cannot install with --packagingroot package from non-php.net channel
* fix Bug #9307: Validator generates warning on empty <contents> tag
+ * fix shell-test command with invalid usage (noticed by Christian Weiske)
* implement Request #8827: add a yesno type handling for post-install scripts
</notes>
<contents>