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

From: Date: Thu, 13 Apr 2017 22:57:01 +0000
Subject: Bug #18102 [Com]: pear install does not fail on error
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to [email protected] to get a copy of this message
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


Thread (1 message)

  • aripringle
« previous php.pear.bugs (#11381) next »