From: Tomas V.V.Cox Date: Tue, 21 May 2002 02:11:42 +0000 (+0000) Subject: Make the installation of a package fail when _installFile X-Git-Tag: RELEASE_0_10~64 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2133d0f4ac7e48ad981ede2d2946e42259b1d0d5;p=php Make the installation of a package fail when _installFile fails and "force" is not set --- diff --git a/pear/PEAR/Installer.php b/pear/PEAR/Installer.php index a8bbf5f68b..ac79f5365a 100644 --- a/pear/PEAR/Installer.php +++ b/pear/PEAR/Installer.php @@ -445,7 +445,10 @@ class PEAR_Installer extends PEAR_Common // <== XXX This part should be removed later on foreach ($pkginfo['filelist'] as $file => $atts) { - $this->_installFile($file, $atts, $tmp_path); + $res = $this->_installFile($file, $atts, $tmp_path); + if (!$res && empty($options['force'])) { + return null; + } } }