diff options
author | Tomas V.V.Cox <cox@php.net> | 2002-05-21 02:11:42 +0000 |
---|---|---|
committer | Tomas V.V.Cox <cox@php.net> | 2002-05-21 02:11:42 +0000 |
commit | 2133d0f4ac7e48ad981ede2d2946e42259b1d0d5 (patch) | |
tree | 71397a90484e064cc38bc6de1fde05abb90c2706 /pear/PEAR/Installer.php | |
parent | 6eb5ad0f53b7690319756d7131bf9926dcf04708 (diff) | |
download | php-git-2133d0f4ac7e48ad981ede2d2946e42259b1d0d5.tar.gz |
Make the installation of a package fail when _installFile
fails and "force" is not set
Diffstat (limited to 'pear/PEAR/Installer.php')
-rw-r--r-- | pear/PEAR/Installer.php | 5 |
1 files changed, 4 insertions, 1 deletions
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; + } } } |