From:  ari@diablomedia.com ("aripringle")
Date:  14 Apr 2017 06:57:01 Hong Kong Time
Newsgroup:  news.php.net/php.pear.bugs
Subject:  

[PEAR-BUG] Bug #18102 [Com]: pear install does not fail on error

NNTP-Posting-Host:  null

Edit report at http://pear.php.net/bugs/bug.php?id=18102&edit=1

 ID:               18102
 Comment by:       aripringle
 Reported By:      ari at diablomedia dot com
 Summary:          pear install does not fail on error
 Status:           Open
 Type:             Bug
 Package:          PEAR
 Operating System: Linux
 Package Version:  1.9.1
 PHP Version:      5.3.3
 New Comment:

I know this bug is quite old, but I ran into it recently when the "zip"
package stopped bundling libzip. Our automated docker image builds were
still succeeding, even though the necessary (for our case) zip extension
was not being installed.


Previous Comments:
------------------------------------------------------------------------

[2010-12-08 14:27:53] yecril71pl

Description:
------------
When pear fails to install a package, it should return an exit code to
the calling process.  Failure to do this breaks make, rpmbuild and
similar scripts.

Test script:
---------------
/usr/bin/gzip -dc /usr/src/packages/SOURCES/PhpDocumentor-1.4.3.tgz |
/bin/tar -xvvf -
pear install --nodeps package.xml || echo 'Failed.'


Expected result:
----------------
pear/PhpDocumentor can optionally use package "pear/XML_Beautifier"
(version >= 1.1)
rolling back 1 file operations
ERROR: file ./docbuilder/images/rc-gui-install-24.png does not exist
Failed.

Actual result:
--------------
pear/PhpDocumentor can optionally use package "pear/XML_Beautifier"
(version >= 1.1)
rolling back 1 file operations
ERROR: file ./docbuilder/images/rc-gui-install-24.png does not exist

------------------------------------------------------------------------


-- 
Edit this bug report at http://pear.php.net/bugs/bug.php?id=18102&edit=1