'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
'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
'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
'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
$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");
$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 {
<state>stable</state>
<date>2002-11-11</date>
<notes>
-New Features, Installer:
-* installer aborts failed installs nicely (using
- file "transactions")
+Changes, Installer:
+* --force option no longer ignores errors, use
+ --ignore-errors instead
+* installer transactions: failed installs abort
+ cleanly, without leaving half-installed packages
+ around
</notes>
<filelist>
<file role="data" name="package.dtd"/>