mirror of
https://github.com/php/php-src.git
synced 2024-11-28 20:34:29 +08:00
* don't abort install if errors are found in the package, display
a warning instead
This commit is contained in:
parent
92e542db27
commit
2b4f112d02
@ -402,8 +402,13 @@ class PEAR_Installer extends PEAR_Common
|
||||
$this->validatePackageInfo($pkginfo, $errors, $warnings);
|
||||
// XXX We allow warnings, have we to do it?
|
||||
if (count($errors)) {
|
||||
return $this->raiseError("The following errors where found:\n".
|
||||
implode("\n", $errors));
|
||||
if (empty($options['force'])) {
|
||||
return $this->raiseError("The following errors where found (use force option to install anyway):\n".
|
||||
implode("\n", $errors));
|
||||
} else {
|
||||
$this->log(0, "warning : the following errors were found:\n".
|
||||
implode("\n", $errors));
|
||||
}
|
||||
}
|
||||
|
||||
$pkgname = $pkginfo['package'];
|
||||
|
Loading…
Reference in New Issue
Block a user