cvs: pear-core /PEAR Installer.php /PEAR/Command Package.php /tests/PEAR_Command_Package/makerpm test_makerpm_passthru.phpt
| From: | Greg Beaver | Date: | Tue, 21 Feb 2006 00:59:13 +0000 |
| Subject: | cvs: pear-core /PEAR Installer.php /PEAR/Command Package.php /tests/PEAR_Command_Package/makerpm test_makerpm_passthru.phpt | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-4560@lists.php.net to get a copy of this message | ||
cellog Tue Feb 21 00:59:13 2006 UTC
Modified files:
/pear-core/PEAR Installer.php
/pear-core/PEAR/Command Package.php
/pear-core/tests/PEAR_Command_Package/makerpm
test_makerpm_passthru.phpt
Log:
make PEAR_Command_Package::domakerpm() match the unit test Tim committed
fix notice of undefined variable in PEAR_Installer (found thanks to Tim's test - thanks!)
fix passthru test to skip if PEAR_Command_Packaging is not installed
http://cvs.php.net/viewcvs.cgi/pear-core/PEAR/Installer.php?r1=1.227&r2=1.228&diff_format=u
Index: pear-core/PEAR/Installer.php
diff -u pear-core/PEAR/Installer.php:1.227 pear-core/PEAR/Installer.php:1.228
--- pear-core/PEAR/Installer.php:1.227 Wed Feb 8 01:52:00 2006
+++ pear-core/PEAR/Installer.php Tue Feb 21 00:59:13 2006
@@ -18,7 +18,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: Installer.php,v 1.227 2006/02/08 01:52:00 cellog Exp $
+ * @version CVS: $Id: Installer.php,v 1.228 2006/02/21 00:59:13 cellog Exp $
* @link http://pear.php.net/package/PEAR
* @since File available since Release 0.1
*/
@@ -1012,6 +1012,7 @@
$this->_registry = &$this->config->getRegistry();
$installregistry = &$this->_registry;
$this->installroot = ''; // all done automagically now
+ $php_dir = $this->config->get('php_dir', null, $channel);
} else {
$this->config->setInstallRoot(false);
$this->_registry = &$this->config->getRegistry();
http://cvs.php.net/viewcvs.cgi/pear-core/PEAR/Command/Package.php?r1=1.117&r2=1.118&diff_format=u
Index: pear-core/PEAR/Command/Package.php
diff -u pear-core/PEAR/Command/Package.php:1.117 pear-core/PEAR/Command/Package.php:1.118
--- pear-core/PEAR/Command/Package.php:1.117 Mon Feb 20 15:21:38 2006
+++ pear-core/PEAR/Command/Package.php Tue Feb 21 00:59:13 2006
@@ -18,7 +18,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: Package.php,v 1.117 2006/02/20 15:21:38 timj Exp $
+ * @version CVS: $Id: Package.php,v 1.118 2006/02/21 00:59:13 cellog Exp $
* @link http://pear.php.net/package/PEAR
* @since File available since Release 0.1
*/
@@ -767,7 +767,7 @@
} else {
$this->ui->outputData('WARNING: "pear makerpm" is now deprecated;
an '.
'improved version is available via "pear make-rpm-spec", which '.
- 'is part of PEAR_Command_Packaging');
+ 'is available by installing PEAR_Command_Packaging');
}
if (sizeof($params) != 1) {
http://cvs.php.net/viewcvs.cgi/pear-core/tests/PEAR_Command_Package/makerpm/test_makerpm_passthru.phpt?r1=1.1&r2=1.2&diff_format=u
Index: pear-core/tests/PEAR_Command_Package/makerpm/test_makerpm_passthru.phpt
diff -u pear-core/tests/PEAR_Command_Package/makerpm/test_makerpm_passthru.phpt:1.1
pear-core/tests/PEAR_Command_Package/makerpm/test_makerpm_passthru.phpt:1.2
--- pear-core/tests/PEAR_Command_Package/makerpm/test_makerpm_passthru.phpt:1.1 Mon Feb 20 15:25:45
2006
+++ pear-core/tests/PEAR_Command_Package/makerpm/test_makerpm_passthru.phpt Tue Feb 21 00:59:13 2006
@@ -5,6 +5,9 @@
if (!getenv('PHP_PEAR_RUNTESTS')) {
echo 'skip';
}
+if (!@include_once 'PEAR/Command/Packaging.php') {
+ echo 'skip: requires PEAR_Command_Packaging package';
+}
?>
--FILE--
<?php