From 2133d0f4ac7e48ad981ede2d2946e42259b1d0d5 Mon Sep 17 00:00:00 2001 From: "Tomas V.V.Cox" Date: Tue, 21 May 2002 02:11:42 +0000 Subject: [PATCH] Make the installation of a package fail when _installFile fails and "force" is not set --- pear/PEAR/Installer.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; + } } } -- 2.40.0