cvs: pear-core / package-PEAR.xml package2.xml /PEAR/Command Install.php /tests/PEAR_Command_Install/upgrade-all test.phpt
| From: | Greg Beaver | Date: | Tue, 13 Feb 2007 04:30:06 +0000 |
| Subject: | cvs: pear-core / package-PEAR.xml package2.xml /PEAR/Command Install.php /tests/PEAR_Command_Install/upgrade-all test.phpt | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-44648@lists.php.net to get a copy of this message | ||
cellog Tue Feb 13 04:30:06 2007 UTC
Modified files:
/pear-core package-PEAR.xml package2.xml
/pear-core/PEAR/Command Install.php
/pear-core/tests/PEAR_Command_Install/upgrade-all test.phpt
Log:
* fix Bug #9959: Channel name not shown when upgrading
update test case for upgrade-all to catch this behavior
http://cvs.php.net/viewvc.cgi/pear-core/package-PEAR.xml?r1=1.428&r2=1.429&diff_format=u
Index: pear-core/package-PEAR.xml
diff -u pear-core/package-PEAR.xml:1.428 pear-core/package-PEAR.xml:1.429
--- pear-core/package-PEAR.xml:1.428 Tue Feb 13 04:23:17 2007
+++ pear-core/package-PEAR.xml Tue Feb 13 04:30:05 2007
@@ -86,6 +86,7 @@
Major bugfix release
* fix Bug #9841: incorrect dependency information shown on uninstall
* fix Bug #9957: E_NOTICE on remote-list
+ * fix Bug #9959: Channel name not shown when upgrading
* fix Bug #10012: pear package: tokenizer should be enabled
* fix Bug #10081: installer dies on uninstall (recursion too deep)
</notes>
http://cvs.php.net/viewvc.cgi/pear-core/package2.xml?r1=1.322&r2=1.323&diff_format=u
Index: pear-core/package2.xml
diff -u pear-core/package2.xml:1.322 pear-core/package2.xml:1.323
--- pear-core/package2.xml:1.322 Tue Feb 13 04:23:17 2007
+++ pear-core/package2.xml Tue Feb 13 04:30:05 2007
@@ -95,6 +95,7 @@
approaches this complexity, and so the error messages were incorrect.
* fix Bug #9841: incorrect dependency information shown on uninstall
* fix Bug #9957: E_NOTICE on remote-list
+ * fix Bug #9959: Channel name not shown when upgrading
* fix Bug #10012: pear package: tokenizer should be enabled
* fix Bug #10081: installer dies on uninstall (recursion too deep)
</notes>
http://cvs.php.net/viewvc.cgi/pear-core/PEAR/Command/Install.php?r1=1.121&r2=1.122&diff_format=u
Index: pear-core/PEAR/Command/Install.php
diff -u pear-core/PEAR/Command/Install.php:1.121 pear-core/PEAR/Command/Install.php:1.122
--- pear-core/PEAR/Command/Install.php:1.121 Sat Jan 6 04:41:31 2007
+++ pear-core/PEAR/Command/Install.php Tue Feb 13 04:30:05 2007
@@ -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: Install.php,v 1.121 2007/01/06 04:41:31 cellog Exp $
+ * @version CVS: $Id: Install.php,v 1.122 2007/02/13 04:30:05 cellog Exp $
* @link http://pear.php.net/package/PEAR
* @since File available since Release 0.1
*/
@@ -584,9 +584,9 @@
// installed version is up-to-date
continue;
}
- $params[] = $reg->parsedPackageNameToString(array('package' =>
$package,
+ $params[] = $a = $reg->parsedPackageNameToString(array('package'
=> $package,
'channel' => $channel));
- $this->ui->outputData(array('data' => "Will upgrade
$package"), $command);
+ $this->ui->outputData(array('data' => "Will upgrade
$a"), $command);
}
}
$this->config->set('default_channel', $savechannel);
http://cvs.php.net/viewvc.cgi/pear-core/tests/PEAR_Command_Install/upgrade-all/test.phpt?r1=1.8&r2=1.9&diff_format=u
Index: pear-core/tests/PEAR_Command_Install/upgrade-all/test.phpt
diff -u pear-core/tests/PEAR_Command_Install/upgrade-all/test.phpt:1.8
pear-core/tests/PEAR_Command_Install/upgrade-all/test.phpt:1.9
--- pear-core/tests/PEAR_Command_Install/upgrade-all/test.phpt:1.8 Fri Feb 3 05:01:48 2006
+++ pear-core/tests/PEAR_Command_Install/upgrade-all/test.phpt Tue Feb 13 04:30:06 2007
@@ -3419,7 +3419,56 @@
$command->_reset_downloader();
$command->run('upgrade-all', array(), array());
$phpunit->assertNoErrors('after upgrade');
-$fakelog->getLog();
+$phpunit->assertEquals(
+array (
+ 0 =>
+ array (
+ 'info' =>
+ array (
+ 'data' => 'Will upgrade channel://pear.php.net/file',
+ ),
+ 'cmd' => 'upgrade-all',
+ ),
+ 1 =>
+ array (
+ 'info' =>
+ array (
+ 'data' => 'Will upgrade channel://pear.php.net/net_sieve',
+ ),
+ 'cmd' => 'upgrade-all',
+ ),
+ 2 =>
+ array (
+ 'info' =>
+ array (
+ 'data' => 'Will upgrade channel://pear.php.net/text_highlighter',
+ ),
+ 'cmd' => 'upgrade-all',
+ ),
+ 3 =>
+ array (
+ 'info' =>
+ array (
+ 'data' => 'Will upgrade channel://pear.php.net/text_wiki',
+ ),
+ 'cmd' => 'upgrade-all',
+ ),
+ 4 =>
+ array (
+ 'info' =>
+ array (
+ 'data' => 'Will upgrade channel://pear.php.net/xml_rpc',
+ ),
+ 'cmd' => 'upgrade-all',
+ ),
+ 5 =>
+ array (
+ 0 => 3,
+ 1 => 'Notice: package "pear/File" required dependency "pear/PEAR"
will not be automatically downloaded',
+ ),
+), array_slice($fakelog->getLog(), 0, 6),
+'upgrade-all log');
+
$reg = &$config->getRegistry();
$phpunit->assertEquals('1.1.0RC5', $reg->packageInfo('File',
'version'), 'File');
$phpunit->assertEquals('1.1.1', $reg->packageInfo('Net_Sieve',
'version'), 'Net_Sieve');