summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2011-03-03 15:19:34 +0100
committerDenys Vlasenko <dvlasenk@redhat.com>2011-03-03 15:19:34 +0100
commit9d54c683155d1fa12d10a3cf1c7e171fbbbfffdd (patch)
tree03384dc11019fb8fe25a8c759c87ff27f0178850
parent00c6f8777fd41d9ccd40f1e402d3cafd8523af0e (diff)
downloadabrt-9d54c683155d1fa12d10a3cf1c7e171fbbbfffdd.tar.gz
abrt-9d54c683155d1fa12d10a3cf1c7e171fbbbfffdd.tar.xz
abrt-9d54c683155d1fa12d10a3cf1c7e171fbbbfffdd.zip
abrt-action-bugzilla: add compat code for old value for FILENAME_OS_RELEASE
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
-rw-r--r--src/plugins/abrt-action-bugzilla.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/abrt-action-bugzilla.cpp b/src/plugins/abrt-action-bugzilla.cpp
index 1a391ae9..c77a2bad 100644
--- a/src/plugins/abrt-action-bugzilla.cpp
+++ b/src/plugins/abrt-action-bugzilla.cpp
@@ -449,6 +449,8 @@ xmlrpc_int32 ctx::new_bug(crash_data_t *crash_data, int depend_on_bugno)
const char *package = get_crash_item_content_or_NULL(crash_data, FILENAME_PACKAGE);
const char *component = get_crash_item_content_or_NULL(crash_data, FILENAME_COMPONENT);
const char *release = get_crash_item_content_or_NULL(crash_data, FILENAME_OS_RELEASE);
+ if (!release) /* Old dump dir format compat. Remove in abrt-2.1 */
+ release = get_crash_item_content_or_NULL(crash_data, "release");
const char *arch = get_crash_item_content_or_NULL(crash_data, FILENAME_ARCHITECTURE);
const char *duphash = get_crash_item_content_or_NULL(crash_data, FILENAME_DUPHASH);
const char *reason = get_crash_item_content_or_NULL(crash_data, FILENAME_REASON);
@@ -674,6 +676,8 @@ static void report_to_bugzilla(
const char *component = get_crash_item_content_or_NULL(crash_data, FILENAME_COMPONENT);
const char *duphash = get_crash_item_content_or_NULL(crash_data, FILENAME_DUPHASH);
const char *release = get_crash_item_content_or_NULL(crash_data, FILENAME_OS_RELEASE);
+ if (!release) /* Old dump dir format compat. Remove in abrt-2.1 */
+ release = get_crash_item_content_or_NULL(crash_data, "release");
ctx bz_server(bugzilla_xmlrpc, ssl_verify);
@@ -859,6 +863,8 @@ static void report_to_bugzilla(
{
const char* package = get_crash_item_content_or_NULL(crash_data, FILENAME_PACKAGE);
const char* release = get_crash_item_content_or_NULL(crash_data, FILENAME_OS_RELEASE);
+ if (!release) /* Old dump dir format compat. Remove in abrt-2.1 */
+ release = get_crash_item_content_or_NULL(crash_data, "release");
const char* arch = get_crash_item_content_or_NULL(crash_data, FILENAME_ARCHITECTURE);
const char* is_private = get_crash_item_content_or_NULL(crash_data, "is_private");