diff options
| author | Christian Dickmann <dickmann@php.net> | 2002-11-13 14:17:26 +0000 |
|---|---|---|
| committer | Christian Dickmann <dickmann@php.net> | 2002-11-13 14:17:26 +0000 |
| commit | 18296252b2f86a3110d07405708617195608fbc4 (patch) | |
| tree | c27b7826cd7380874f43defc66d6e2801ee64e6d /pear/PEAR/Frontend/CLI.php | |
| parent | 253cecd43aad193622daa237acf2bb173d99d68c (diff) | |
| download | php-git-18296252b2f86a3110d07405708617195608fbc4.tar.gz | |
Add new tag to package.xml named <warnings>.\nThis warnings are printed when installing/upgrading the package.\nThis patch was created in a cooperation with Tal Peer (Thanks for the idea Tal)
Diffstat (limited to 'pear/PEAR/Frontend/CLI.php')
| -rw-r--r-- | pear/PEAR/Frontend/CLI.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pear/PEAR/Frontend/CLI.php b/pear/PEAR/Frontend/CLI.php index 4c0802e5cf..80a47507ca 100644 --- a/pear/PEAR/Frontend/CLI.php +++ b/pear/PEAR/Frontend/CLI.php @@ -355,6 +355,20 @@ class PEAR_Frontend_CLI extends PEAR { switch ($command) { + case 'install': + case 'upgrade': + if (isset($data['release_warnings'])) { + $this->_displayLine(''); + $this->_startTable(array( + 'border' => true, + 'caption' => 'Release Warnings' + )); + $this->_tableRow(array($data['release_warnings']), null, array(1 => array('wrap' => 55))); + $this->_endTable(); + $this->_displayLine(''); + }; + $this->_displayLine($data['data']); + break; case 'search': $this->_startTable($data); if (isset($data['headline']) && is_array($data['headline'])) |
