Add patch to add workflow field when saving FAF response
Needed to make one Cockpit test pass. Signed-off-by: Ernestas Kulik <ekulik@redhat.com>
This commit is contained in:
parent
7aed889e6b
commit
216f0e95b1
@ -0,0 +1,44 @@
|
|||||||
|
From f2d98e0ee81037f18e50c06e409def19e791c2f2 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Ernestas Kulik <ekulik@redhat.com>
|
||||||
|
Date: Wed, 17 Apr 2019 13:24:19 +0200
|
||||||
|
Subject: [PATCH] lib: ureport: Export workflow when saving server response
|
||||||
|
|
||||||
|
Oversight from 779b16202c3fe990f6ecda17085c436899340e12.
|
||||||
|
|
||||||
|
Signed-off-by: Ernestas Kulik <ekulik@redhat.com>
|
||||||
|
---
|
||||||
|
src/lib/ureport.c | 18 +++++++++++++++++-
|
||||||
|
1 file changed, 17 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/lib/ureport.c b/src/lib/ureport.c
|
||||||
|
index cc18aefd..a5953244 100644
|
||||||
|
--- a/src/lib/ureport.c
|
||||||
|
+++ b/src/lib/ureport.c
|
||||||
|
@@ -680,7 +680,23 @@ ureport_server_response_save_in_dump_dir(struct ureport_server_response *resp,
|
||||||
|
if (resp->urr_reported_to_list)
|
||||||
|
{
|
||||||
|
for (GList *e = resp->urr_reported_to_list; e; e = g_list_next(e))
|
||||||
|
- add_reported_to(dd, e->data);
|
||||||
|
+ {
|
||||||
|
+ char *workflow;
|
||||||
|
+
|
||||||
|
+ workflow = getenv("LIBREPORT_WORKFLOW");
|
||||||
|
+ if (NULL == workflow)
|
||||||
|
+ {
|
||||||
|
+ add_reported_to(dd, e->data);
|
||||||
|
+ }
|
||||||
|
+ else
|
||||||
|
+ {
|
||||||
|
+ g_autofree char *line = NULL;
|
||||||
|
+
|
||||||
|
+ line = g_strdup_printf("%s WORKFLOW=%s", (const char *)e->data, workflow);
|
||||||
|
+
|
||||||
|
+ add_reported_to(dd, line);
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
}
|
||||||
|
|
||||||
|
if (resp->urr_solution)
|
||||||
|
--
|
||||||
|
2.21.0
|
||||||
|
|
@ -29,11 +29,12 @@
|
|||||||
Summary: Generic library for reporting various problems
|
Summary: Generic library for reporting various problems
|
||||||
Name: libreport
|
Name: libreport
|
||||||
Version: 2.10.0
|
Version: 2.10.0
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: https://abrt.readthedocs.org/
|
URL: https://abrt.readthedocs.org/
|
||||||
Source: https://github.com/abrt/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
|
Source: https://github.com/abrt/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
|
Patch0: 0001-lib-ureport-Export-workflow-when-saving-server-respo.patch
|
||||||
|
|
||||||
BuildRequires: %{dbus_devel}
|
BuildRequires: %{dbus_devel}
|
||||||
BuildRequires: gtk3-devel
|
BuildRequires: gtk3-devel
|
||||||
@ -814,6 +815,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Apr 23 2019 Ernestas Kulik <ekulik@redhat.com> - 2.10.0-3
|
||||||
|
- Add patch to fix workflow fields not being added to reported_to when μReport response comes with a Bugzilla URL
|
||||||
|
|
||||||
* Mon Feb 04 2019 Ernestas Kulik <ekulik@redhat.com> - 2.10.0-2
|
* Mon Feb 04 2019 Ernestas Kulik <ekulik@redhat.com> - 2.10.0-2
|
||||||
- Remove unused patch
|
- Remove unused patch
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user