Blame SOURCES/0038-stop-sending-ureports-from-abrt-applet.patch

baab13
From 9bc8bc16ca37d2e5c0caa20649a92dc1ae814051 Mon Sep 17 00:00:00 2001
baab13
From: Jakub Filak <jfilak@redhat.com>
baab13
Date: Mon, 24 Feb 2014 11:24:20 +0100
baab13
Subject: [ABRT PATCH 38/40] stop sending ureports from abrt-applet
baab13
baab13
Related to rhbz#1067114
baab13
baab13
Signed-off-by: Jakub Filak <jfilak@redhat.com>
baab13
---
baab13
 src/applet/applet.c | 10 ++++++++++
baab13
 1 file changed, 10 insertions(+)
baab13
baab13
diff --git a/src/applet/applet.c b/src/applet/applet.c
baab13
index 131d2ab..6ce400f 100644
baab13
--- a/src/applet/applet.c
baab13
+++ b/src/applet/applet.c
baab13
@@ -49,6 +49,8 @@
baab13
 
baab13
 #define GUI_EXECUTABLE "gnome-abrt"
baab13
 
baab13
+#define RHBZ_1067114_NO_UREPORT
baab13
+
baab13
 enum
baab13
 {
baab13
     /*
baab13
@@ -90,6 +92,7 @@ static bool is_autoreporting_enabled(void)
baab13
     return get_configured_bool_or_default("AutoreportingEnabled", g_settings_autoreporting);
baab13
 }
baab13
 
baab13
+#ifndef RHBZ_1067114_NO_UREPORT
baab13
 static bool is_ureport_auth_enabled(void)
baab13
 {
baab13
     bool success, auth_enabled;
baab13
@@ -110,6 +113,7 @@ static bool is_ureport_auth_enabled(void)
baab13
 
baab13
     return auth_enabled;
baab13
 }
baab13
+#endif//RHBZ_1067114_NO_UREPORT
baab13
 
baab13
 static const char *get_autoreport_event_name(void)
baab13
 {
baab13
@@ -118,6 +122,7 @@ static const char *get_autoreport_event_name(void)
baab13
     return configured ? configured : g_settings_autoreporting_event;
baab13
 }
baab13
 
baab13
+#ifndef RHBZ_1067114_NO_UREPORT
baab13
 static void ask_start_autoreporting()
baab13
 {
baab13
     struct strbuf *question = strbuf_new();
baab13
@@ -156,6 +161,7 @@ static void ask_start_autoreporting()
baab13
     /* must be called immediately, otherwise the data could be lost in case of crash */
baab13
     save_user_settings();
baab13
 }
baab13
+#endif//RHBZ_1067114_NO_UREPORT
baab13
 
baab13
 static bool is_shortened_reporting_enabled()
baab13
 {
baab13
@@ -632,10 +638,13 @@ static void action_report(NotifyNotification *notification, gchar *action, gpoin
baab13
     problem_info_t *pi = (problem_info_t *)user_data;
baab13
     if (problem_info_get_dir(pi))
baab13
     {
baab13
+#ifndef RHBZ_1067114_NO_UREPORT
baab13
         if (strcmp(A_REPORT_REPORT, action) == 0)
baab13
         {
baab13
+#endif//RHBZ_1067114_NO_UREPORT
baab13
             run_report_from_applet(problem_info_get_dir(pi));
baab13
             problem_info_free(pi);
baab13
+#ifndef RHBZ_1067114_NO_UREPORT
baab13
         }
baab13
         else
baab13
         {
baab13
@@ -647,6 +656,7 @@ static void action_report(NotifyNotification *notification, gchar *action, gpoin
baab13
             run_event_async(pi, get_autoreport_event_name(),
baab13
                 is_shortened_reporting_enabled() ? 0 : REPORT_UNKNOWN_PROBLEM_IMMEDIATELY);
baab13
         }
baab13
+#endif//RHBZ_1067114_NO_UREPORT
baab13
     }
baab13
     else
baab13
         problem_info_free(pi);
baab13
-- 
baab13
1.8.3.1
baab13