]> granicus.if.org Git - php/commitdiff
Make the installation of a package fail when _installFile
authorTomas V.V.Cox <cox@php.net>
Tue, 21 May 2002 02:11:42 +0000 (02:11 +0000)
committerTomas V.V.Cox <cox@php.net>
Tue, 21 May 2002 02:11:42 +0000 (02:11 +0000)
fails and "force" is not set

pear/PEAR/Installer.php

index a8bbf5f68bd52405cd02d1a84be37bc82a1e3ab3..ac79f5365ae8f32551d0c946a4740306fe287644 100644 (file)
@@ -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;
+                }
             }
         }