From 2b4f112d026069388ba36cfb82fa72023e786f1f Mon Sep 17 00:00:00 2001 From: Stig Bakken Date: Sun, 28 Jul 2002 08:52:29 +0000 Subject: [PATCH] * don't abort install if errors are found in the package, display a warning instead --- pear/PEAR/Installer.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pear/PEAR/Installer.php b/pear/PEAR/Installer.php index 590c11f122..09f343dea4 100644 --- a/pear/PEAR/Installer.php +++ b/pear/PEAR/Installer.php @@ -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']; -- 2.50.1