From 3c86bd28e8158a2d5ead2c147e4ce771f801652f Mon Sep 17 00:00:00 2001 From: Jiri Moskovcak Date: May 06 2011 11:57:07 +0000 Subject: flush messages in retrace client --- diff --git a/abrt.spec b/abrt.spec index 36c7459..a77833c 100644 --- a/abrt.spec +++ b/abrt.spec @@ -10,7 +10,7 @@ Summary: Automatic bug detection and reporting tool Name: abrt Version: 2.0.2 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2+ Group: Applications/System URL: https://fedorahosted.org/abrt/ @@ -22,6 +22,7 @@ Patch0: remove_libreport_python.patch Patch1: blacklist.patch Patch2: allow_bz_for_koops.patch Patch3: retrace_addr.patch +Patch4: retrace_client_flush.patch BuildRequires: dbus-devel BuildRequires: gtk2-devel BuildRequires: curl-devel @@ -262,6 +263,7 @@ generation service over a network using HTTP protocol. %patch1 -p1 -b .blacklist %patch2 -p1 -b bz_for_oops %patch3 -p1 -b retrace_addr +%patch4 -p1 -b flush_messages %build autoconf @@ -644,6 +646,9 @@ fi %{_infodir}/abrt-retrace-server* %changelog +* Fri May 06 2011 Jiri Moskovcak 2.0.2-2 +- flush messages in retrace client + * Thu May 05 2011 Jiri Moskovcak 2.0.2-1 - updated translation - new icons (thanks to Lapo Calamandrei) diff --git a/retrace_client_flush.patch b/retrace_client_flush.patch new file mode 100644 index 0000000..11a62ec --- /dev/null +++ b/retrace_client_flush.patch @@ -0,0 +1,18 @@ +commit a74f116ad098343282f5be157fd59e4e4aba4705 +Author: Michal Toman +Date: Fri May 6 11:25:55 2011 +0200 + + retrace client: flush stdout after each status message in batch mode + +diff --git a/src/plugins/abrt-retrace-client.c b/src/plugins/abrt-retrace-client.c +index 5ade792..1d46a8c 100644 +--- a/src/plugins/abrt-retrace-client.c ++++ b/src/plugins/abrt-retrace-client.c +@@ -844,6 +844,7 @@ static int run_batch(bool delete_temp_archive) + sleep(10); + status(task_id, task_password, &task_status, &status_message); + puts(status_message); ++ fflush(stdout); + } + if (0 == strcmp(task_status, "FINISHED_SUCCESS")) + {