parse logfiles once for known errors
authorAndreas Beckmann <debian@abeckmann.de>
Wed, 30 Nov 2011 23:20:38 +0000 (00:20 +0100)
committerAndreas Beckmann <debian@abeckmann.de>
Wed, 30 Nov 2011 23:21:32 +0000 (00:21 +0100)
commit8b2129efb9ddf6efab7a9f3f2683e0bf7cb19f4f
tree4a0b51e77c4cb3401f3ccbfe152bfaf1447838a9
parentbd02f79e5e22e007383cd7a222a8d21c136b0d95
parse logfiles once for known errors

cache the result of running all the known_problem grep's in *.kpr
merge *.kpr once for each section and build *.tpl from it
now only the test for the most recent logfile takes some time

Signed-off-by: Andreas Beckmann <debian@abeckmann.de>
26 files changed:
home/piupartsm/bin/detect_well_known_errors
home/piupartsm/bin/known_problems/broken_symlinks_error.conf
home/piupartsm/bin/known_problems/broken_symlinks_issue.conf
home/piupartsm/bin/known_problems/command_not_found_error.conf
home/piupartsm/bin/known_problems/command_not_found_issue.conf
home/piupartsm/bin/known_problems/conffile_prompt_error.conf
home/piupartsm/bin/known_problems/cron_error_after_removal_error.conf
home/piupartsm/bin/known_problems/db_setup_error.conf
home/piupartsm/bin/known_problems/disappeared_files_after_purge_error.conf
home/piupartsm/bin/known_problems/files_in_usr_local_error.conf
home/piupartsm/bin/known_problems/initdscript_lsb_header_issue.conf
home/piupartsm/bin/known_problems/insserv_error.conf
home/piupartsm/bin/known_problems/logrotate_error_after_removal_error.conf
home/piupartsm/bin/known_problems/modified_files_after_purge_error.conf
home/piupartsm/bin/known_problems/overwrite_other_packages_files_error.conf
home/piupartsm/bin/known_problems/owned_files_after_purge_error.conf
home/piupartsm/bin/known_problems/owned_files_by_many_packages_error.conf
home/piupartsm/bin/known_problems/post_installation_script_error.conf
home/piupartsm/bin/known_problems/post_removal_script_error.conf
home/piupartsm/bin/known_problems/pre_depends_error.conf
home/piupartsm/bin/known_problems/pre_installation_script_error.conf
home/piupartsm/bin/known_problems/pre_removal_script_error.conf
home/piupartsm/bin/known_problems/problems_and_no_force_error.conf
home/piupartsm/bin/known_problems/processes_running_error.conf
home/piupartsm/bin/known_problems/unknown_purge_error.conf
home/piupartsm/bin/known_problems/unowned_files_after_purge_error.conf