summaryrefslogtreecommitdiffstats
path: root/src/cli/cli.c
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2011-03-29 18:19:32 +0200
committerJiri Moskovcak <jmoskovc@redhat.com>2011-03-29 18:19:32 +0200
commit5cc34d7d4e636c083b2722645778f78bf30c71cb (patch)
tree0a53c529260732b6afe78669884618e3e0f24993 /src/cli/cli.c
parentaa08665949da429660dd78a6d26a0fc3cb11d6cd (diff)
downloadabrt-5cc34d7d4e636c083b2722645778f78bf30c71cb.zip
abrt-5cc34d7d4e636c083b2722645778f78bf30c71cb.tar.gz
abrt-5cc34d7d4e636c083b2722645778f78bf30c71cb.tar.xz
Revert "Ticket #178 abrt-cli should provide an option to select analyzer"
This reverts commit e2b73a97a213d6b317e5410b0dc9d931686442d2.
Diffstat (limited to 'src/cli/cli.c')
-rw-r--r--src/cli/cli.c31
1 files changed, 3 insertions, 28 deletions
diff --git a/src/cli/cli.c b/src/cli/cli.c
index 4e0042f..0c895a7 100644
--- a/src/cli/cli.c
+++ b/src/cli/cli.c
@@ -360,9 +360,6 @@ int main(int argc, char** argv)
print_usage_and_die(argv[0]);
}
- /* Get settings */
- load_event_config_data();
-
/* Do the selected operation. */
int exitcode = 0;
switch (op)
@@ -412,37 +409,15 @@ int main(int argc, char** argv)
}
case OPT_INFO:
{
- /* Load crash_data from (possibly updated by analyze) dump dir */
- struct dump_dir *dd = dd_opendir(dump_dir_name, /*flags:*/ 0);
- if (!dd)
- return -1;
-
- char *analyze_events_as_lines = list_possible_events(dd, NULL, "analyze");
- dd_close(dd);
-
- if (analyze_events_as_lines && *analyze_events_as_lines)
- {
- GList *list_analyze_events = str_to_glist(analyze_events_as_lines, '\n');
- free(analyze_events_as_lines);
-
- char *event = select_event_option(list_analyze_events);
- list_free_with_free(list_analyze_events);
-
- int analyzer_result = run_analyze_event(dump_dir_name, event);
- free(event);
-
- if (analyzer_result != 0)
- return 1;
- }
+ if (run_analyze_event(dump_dir_name) != 0)
+ return 1;
/* Load crash_data from (possibly updated by analyze) dump dir */
- dd = dd_opendir(dump_dir_name, /*flags:*/ 0);
+ struct dump_dir *dd = dd_opendir(dump_dir_name, /*flags:*/ 0);
if (!dd)
return -1;
-
crash_data_t *crash_data = create_crash_data_from_dump_dir(dd);
dd_close(dd);
-
add_to_crash_data_ext(crash_data, CD_DUMPDIR, dump_dir_name,
CD_FLAG_TXT + CD_FLAG_ISNOTEDITABLE);