From 9d54c683155d1fa12d10a3cf1c7e171fbbbfffdd Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 3 Mar 2011 15:19:34 +0100 Subject: abrt-action-bugzilla: add compat code for old value for FILENAME_OS_RELEASE Signed-off-by: Denys Vlasenko --- src/plugins/abrt-action-bugzilla.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/plugins/abrt-action-bugzilla.cpp') 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"); -- cgit