$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'];