Also write out the rules that caused the problem to ease troubleshooting.

This commit is contained in:
Warren Baker 2012-02-01 19:58:52 +02:00
parent dd576193b2
commit d835ffc8c2

View File

@ -3115,7 +3115,7 @@ function discover_pkg_rules($ruletype) {
if ($status <> 0) {
$errorrules = sprintf(gettext("There was an error while parsing the package filter rules for %s."), $pkg_inc) . "\n";
log_error($errorrules);
file_put_contents("{$g['tmp_path']}/rules.packages.{$pkg}", "#{$errorrules}\n");
file_put_contents("{$g['tmp_path']}/rules.packages.{$pkg}", "#{$errorrules}\n{$tmprules}\n");
continue;
}
$rules .= $tmprules;