Rebuild libreport with fixed emergency analysis

This commit is contained in:
Jakub Filak 2013-03-22 10:29:01 +01:00
parent 597e30dd30
commit daff2c7559
2 changed files with 65 additions and 1 deletions

View File

@ -0,0 +1,58 @@
From 786ae573b07911dd5553afc6912bca0292d282e2 Mon Sep 17 00:00:00 2001
From: Jakub Filak <jfilak@redhat.com>
Date: Thu, 21 Mar 2013 14:59:04 +0100
Subject: [LIBREPORT PATCH] report-gtk: update excluded elements check boxes
before emergency analysis event
- closes #141
Signed-off-by: Jakub Filak <jfilak@redhat.com>
---
src/gui-wizard-gtk/wizard.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/gui-wizard-gtk/wizard.c b/src/gui-wizard-gtk/wizard.c
index 5f4db93..7c00d3c 100644
--- a/src/gui-wizard-gtk/wizard.c
+++ b/src/gui-wizard-gtk/wizard.c
@@ -1204,9 +1204,9 @@ static void append_item_to_ls_details(gpointer name, gpointer value, gpointer da
}
/* Based on selected reporter, update item checkboxes */
-static void update_ls_details_checkboxes(void)
+static void update_ls_details_checkboxes(const char *event_name)
{
- event_config_t *cfg = get_event_config(g_event_selected);
+ event_config_t *cfg = get_event_config(event_name);
//log("%s: event:'%s', cfg:'%p'", __func__, g_event_selected, cfg);
GHashTableIter iter;
char *name;
@@ -1684,6 +1684,7 @@ static void on_btn_failed_cb(GtkButton *button)
gtk_expander_set_expanded(g_exp_report_log, TRUE);
clear_warnings();
+ update_ls_details_checkboxes(EMERGENCY_ANALYSIS_EVENT_NAME);
setup_and_start_event_run(EMERGENCY_ANALYSIS_EVENT_NAME);
/* single shot button -> hide after click */
@@ -2446,7 +2447,7 @@ static void on_page_prepare(GtkNotebook *assistant, GtkWidget *page, gpointer us
if (pages[PAGENO_REVIEW_DATA].page_widget == page)
{
gtk_widget_set_sensitive(g_btn_next, gtk_toggle_button_get_active(g_tb_approve_bt));
- update_ls_details_checkboxes();
+ update_ls_details_checkboxes(g_event_selected);
}
}
@@ -2888,7 +2889,7 @@ static void on_btn_add_file(GtkButton *button)
problem_data_reload_from_dump_dir();
update_gui_state_from_problem_data(/* don't update selected event */ 0);
/* Set flags for the new item */
- update_ls_details_checkboxes();
+ update_ls_details_checkboxes(g_event_selected);
}
}
free(new_name);
--
1.8.1.4

View File

@ -5,11 +5,13 @@
Summary: Generic library for reporting various problems
Name: libreport
Version: 2.1.2
Release: 1%{?dist}
Release: 2%{?dist}
License: GPLv2+
Group: System Environment/Libraries
URL: https://fedorahosted.org/abrt/
Source: https://fedorahosted.org/released/abrt/%{name}-%{version}.tar.gz
# Remove this patch with libreport-2.1.3
Patch0: libreport-2.1.2-fix_empty_archives_for_emergency_analysis.patch
BuildRequires: dbus-devel
BuildRequires: gtk3-devel
@ -254,6 +256,7 @@ infrastructure or uploading the gathered data over ftp/scp...
%prep
%setup -q
%patch0 -p1 -b .updateex
%build
autoconf
@ -453,6 +456,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%changelog
* Fri Mar 22 2013 Jakub Filak <jfilak@redhat.com> 2.1.2-2
- add a patch which fixes a problem with empty archives in emergency analysis
* Tue Mar 19 2013 Jakub Filak <jfilak@redhat.com> 2.1.2-1
- always treat os-release as textual related to rhbz#922433
- is_text_file(): bump allowable non-ASCII chars from 2% to 10%. Closes rhbz#922433