diff options
| author | Nikola Pajkovsky <npajkovs@redhat.com> | 2010-05-26 17:28:31 +0200 |
|---|---|---|
| committer | Nikola Pajkovsky <npajkovs@redhat.com> | 2010-05-26 17:28:31 +0200 |
| commit | bcebad426c2b178b2d46c786343c55d3d14abf73 (patch) | |
| tree | 2752037d7f8811647bf93f6c2e3bfb9643835b76 /src/CLI/report.cpp | |
| parent | 9aa25a391810f151e65cbaf05ea8d111b864d4a7 (diff) | |
| parent | b59c6438a772e3c3aba2f455fa5482add6c9d886 (diff) | |
| download | abrt-bcebad426c2b178b2d46c786343c55d3d14abf73.tar.gz abrt-bcebad426c2b178b2d46c786343c55d3d14abf73.tar.xz abrt-bcebad426c2b178b2d46c786343c55d3d14abf73.zip | |
Merge branch 'master' of ssh://git.fedorahosted.org/git/abrt
Diffstat (limited to 'src/CLI/report.cpp')
| -rw-r--r-- | src/CLI/report.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/CLI/report.cpp b/src/CLI/report.cpp index cb88c3ca..e3ecb0e3 100644 --- a/src/CLI/report.cpp +++ b/src/CLI/report.cpp @@ -647,17 +647,21 @@ static void get_reporter_plugin_settings(const vector_string_t& reporters, } /* Reports the crash with corresponding crash_id over DBus. */ -int report(const char *crash_id, bool always) +int report(const char *crash_id, int flags) { + int old_logmode = logmode; + if (flags & CLI_REPORT_SILENT_IF_NOT_FOUND) + logmode = 0; // Ask for an initial report. map_crash_data_t cr = call_CreateReport(crash_id); + logmode = old_logmode; if (cr.size() == 0) { return -1; } /* Open text editor and give a chance to review the backtrace etc. */ - if (!always) + if (!(flags & CLI_REPORT_BATCH)) { int result = run_report_editor(cr); if (result != 0) @@ -669,7 +673,7 @@ int report(const char *crash_id, bool always) int errors = 0; int plugins = 0; - if (always) + if (flags & CLI_REPORT_BATCH) { map_map_string_t reporters_settings; /* to be filled on the next line */ get_reporter_plugin_settings(reporters, reporters_settings, false); |
