cvs: pear-core /PEAR/Command Install.php
| From: | Greg Beaver | Date: | Thu, 03 Mar 2005 03:03:02 +0000 |
| Subject: | cvs: pear-core /PEAR/Command Install.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-30004@lists.php.net to get a copy of this message | ||
cellog Wed Mar 2 22:03:02 2005 EDT
Modified files:
/pear-core/PEAR/Command Install.php
Log:
Fix Bug #3677 Post-Install script message needs to display channel name
http://cvs.php.net/diff.php/pear-core/PEAR/Command/Install.php?r1=1.90&r2=1.91&ty=u
Index: pear-core/PEAR/Command/Install.php
diff -u pear-core/PEAR/Command/Install.php:1.90 pear-core/PEAR/Command/Install.php:1.91
--- pear-core/PEAR/Command/Install.php:1.90 Sun Feb 20 20:14:13 2005
+++ pear-core/PEAR/Command/Install.php Wed Mar 2 22:03:02 2005
@@ -16,7 +16,7 @@
// | Author: Stig S?ther Bakken <ssb@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: Install.php,v 1.90 2005/02/21 01:14:13 cellog Exp $
+// $Id: Install.php,v 1.91 2005/03/03 03:03:02 cellog Exp $
require_once "PEAR/Command/Common.php";
require_once "PEAR/Installer.php";
@@ -473,11 +473,13 @@
$pkg = &$reg->getPackage($param->getPackage(), $param->getChannel());
$pkg->setConfig($this->config);
if ($list = $pkg->listPostinstallScripts()) {
- $extrainfo[] = $param->getPackage() . ' has post-install
scripts:';
+ $pn = $reg->parsedPackageNameToString(array('channel' =>
+ $param->getChannel(), 'package' =>
$param->getPackage()), true);
+ $extrainfo[] = $pn . ' has post-install scripts:';
foreach ($list as $file) {
$extrainfo[] = $file;
}
- $extrainfo[] = 'Use "pear run-scripts ' . $pkg->getPackage()
. '" to run';
+ $extrainfo[] = 'Use "pear run-scripts ' . $pn . '" to
run';
$extrainfo[] = 'DO NOT RUN SCRIPTS FROM UNTRUSTED SOURCES';
}
} else {