From:  pear-qa@lists.php.net ("ari@diablomedia.com")
Date:  14 Apr 2017 07:27:31 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 https://pear.php.net/bugs/bug.php?id=18102&edit=1

 ID:               18102
 Comment by:       ari at diablomedia dot com
 Reported By:      giecrilj at stegny dot 2a dot pl
 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
 Roadmap Versions: 
 New Comment:

FWIW, I made a PR to attempt to address this:

https://github.com/pear/pear-core/pull/66


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

[2017-04-13 18:56:27] aripringle

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.

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

[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 https://pear.php.net/bugs/bug.php?id=18102&edit=1