]> granicus.if.org Git - php/commitdiff
MFH
authorStig Bakken <ssb@php.net>
Tue, 26 Nov 2002 01:34:31 +0000 (01:34 +0000)
committerStig Bakken <ssb@php.net>
Tue, 26 Nov 2002 01:34:31 +0000 (01:34 +0000)
pear/PEAR/Command/Install.php
pear/PEAR/Installer.php
pear/package-PEAR.xml

index 69256a9f560ea1df315c489c68e3ef332f584bd8..61014ede0e17bf779b0ab5380624e04813c68396 100644 (file)
@@ -66,6 +66,9 @@ class PEAR_Command_Install extends PEAR_Command_Common
                     'arg' => 'DIR',
                     'doc' => 'root directory used when installing files (ala PHP\'s INSTALL_ROOT)',
                     ),
+                'ignore-errors' => array(
+                    'doc' => 'force install even if there were errors',
+                    ),
                 ),
             'doc' => '<package> ...
 Installs one or more PEAR packages.  You can specify a package to
@@ -117,6 +120,9 @@ four ways of specifying packages.
                     'arg' => 'DIR',
                     'doc' => 'root directory used when installing files (ala PHP\'s INSTALL_ROOT)',
                     ),
+                'ignore-errors' => array(
+                    'doc' => 'force install even if there were errors',
+                    ),
                 ),
             'doc' => '<package> ...
 Upgrades one or more PEAR packages.  See documentation for the
@@ -154,6 +160,9 @@ More than one package may be specified at once.
                     'arg' => 'DIR',
                     'doc' => 'root directory used when installing files (ala PHP\'s INSTALL_ROOT)',
                     ),
+                'ignore-errors' => array(
+                    'doc' => 'force install even if there were errors',
+                    ),
                 ),
             'doc' => '
 Upgrades all packages that have a newer release available.  Upgrades are
@@ -179,6 +188,9 @@ more stable.
                     'arg' => 'DIR',
                     'doc' => 'root directory used when installing files (ala PHP\'s INSTALL_ROOT)',
                     ),
+                'ignore-errors' => array(
+                    'doc' => 'force install even if there were errors',
+                    ),
                 ),
             'doc' => '<package> ...
 Uninstalls one or more PEAR packages.  More than one package may be
index 21d7bf9235bf526a592163713767c0449842e676..0501194cd72151df7984350821f14299f9ced5a1 100644 (file)
@@ -220,8 +220,8 @@ class PEAR_Installer extends PEAR_Common
             $this->log(3, "+ mkdir $dest_dir");
         }
         if (empty($atts['replacements'])) {
-            if (!copy($orig_file, $dest_file)) {
-                return $this->raiseError("failed to copy $orig_file to $dest_file",
+            if (!@copy($orig_file, $dest_file)) {
+                return $this->raiseError("failed to write $dest_file",
                                          PEAR_INSTALLER_FAILED);
             }
             $this->log(3, "+ cp $orig_file $dest_file");
@@ -684,7 +684,7 @@ class PEAR_Installer extends PEAR_Common
                 $res = $this->_installFile($file, $atts, $tmp_path);
                 $this->popExpect();
                 if (PEAR::isError($res)) {
-                    if (empty($options['force'])) {
+                    if (empty($options['ignore-errors'])) {
                         $this->rollbackFileTransaction();
                         return $this->raiseError($res);
                     } else {
index 98628294b98eca2871d1e58c463b8b64824cac7b..01003e515131687a8fe4470ef5975ba56d923d56 100644 (file)
@@ -33,7 +33,7 @@
   <release>
     <version>1.0b2</version>
     <state>stable</state>
-    <date>2002-11-11</date>
+    <date>2002-11-26</date>
     <notes>
 Changes, Installer:
 * --force option no longer ignores errors, use