|
Jakub Filak |
c981b7 |
From 133940d93193f82c5cc63d627f691291dfd7759a Mon Sep 17 00:00:00 2001
|
|
Jakub Filak |
c981b7 |
From: Jakub Filak <jfilak@redhat.com>
|
|
Jakub Filak |
c981b7 |
Date: Tue, 6 Aug 2013 12:32:45 +0200
|
|
Jakub Filak |
c981b7 |
Subject: [ABRT PATCH] a-a-ureport: generate core_backtrace only for CCpp
|
|
Jakub Filak |
c981b7 |
problems
|
|
Jakub Filak |
c981b7 |
|
|
Jakub Filak |
c981b7 |
Closes rhbz#993630
|
|
Jakub Filak |
c981b7 |
|
|
Jakub Filak |
c981b7 |
Signed-off-by: Jakub Filak <jfilak@redhat.com>
|
|
Jakub Filak |
c981b7 |
Signed-off-by: Martin Milata <mmilata@redhat.com>
|
|
Jakub Filak |
c981b7 |
---
|
|
Jakub Filak |
c981b7 |
src/plugins/abrt-action-ureport | 9 ++++++++-
|
|
Jakub Filak |
c981b7 |
1 file changed, 8 insertions(+), 1 deletion(-)
|
|
Jakub Filak |
c981b7 |
|
|
Jakub Filak |
c981b7 |
diff --git a/src/plugins/abrt-action-ureport b/src/plugins/abrt-action-ureport
|
|
Jakub Filak |
c981b7 |
index 41916bd..44575d8 100755
|
|
Jakub Filak |
c981b7 |
--- a/src/plugins/abrt-action-ureport
|
|
Jakub Filak |
c981b7 |
+++ b/src/plugins/abrt-action-ureport
|
|
Jakub Filak |
c981b7 |
@@ -59,6 +59,13 @@ if __name__ == "__main__":
|
|
Jakub Filak |
c981b7 |
dd = dd_opendir(dirname, 0)
|
|
Jakub Filak |
c981b7 |
if not dd:
|
|
Jakub Filak |
c981b7 |
sys.exit(1)
|
|
Jakub Filak |
c981b7 |
+
|
|
Jakub Filak |
c981b7 |
+ report_type = dd.load_text("type", DD_FAIL_QUIETLY_ENOENT)
|
|
Jakub Filak |
c981b7 |
+
|
|
Jakub Filak |
c981b7 |
+ # because of backward compatibility
|
|
Jakub Filak |
c981b7 |
+ if not report_type:
|
|
Jakub Filak |
c981b7 |
+ report_type = dd.load_text("analyzer", 0)
|
|
Jakub Filak |
c981b7 |
+
|
|
Jakub Filak |
c981b7 |
core_backtrace_exists = dd.exist("core_backtrace")
|
|
Jakub Filak |
c981b7 |
reported_to = dd.load_text("reported_to", DD_FAIL_QUIETLY_ENOENT)
|
|
Jakub Filak |
c981b7 |
ureports_counter = try_parse_number(dd, "ureports_counter")
|
|
Jakub Filak |
c981b7 |
@@ -90,7 +97,7 @@ if __name__ == "__main__":
|
|
Jakub Filak |
c981b7 |
log(_("uReport was already sent, not sending it again"))
|
|
Jakub Filak |
c981b7 |
sys.exit(0)
|
|
Jakub Filak |
c981b7 |
|
|
Jakub Filak |
c981b7 |
- if not core_backtrace_exists:
|
|
Jakub Filak |
c981b7 |
+ if report_type == "CCpp" and not core_backtrace_exists:
|
|
Jakub Filak |
c981b7 |
exitcode = spawn_and_wait("abrt-action-generate-core-backtrace")
|
|
Jakub Filak |
c981b7 |
if exitcode != 0:
|
|
Jakub Filak |
c981b7 |
log1("uReport can't be sent without core_backtrace. Exiting.")
|
|
Jakub Filak |
c981b7 |
--
|
|
Jakub Filak |
c981b7 |
1.8.3.1
|
|
Jakub Filak |
c981b7 |
|