[PEAR-BUG] Bug #18102 [Com]: pear install does not fail on error
[email protected] ("aripringle") Thu, 13 Apr 2017 18:57:01 -0400 (EDT)
| Newsgroups | php.pear.bugs |
|---|---|
| Message-ID | <[email protected]> |
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