[gnome-software] odrs: trivial: Set origin correctly for failed-to-download events
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] odrs: trivial: Set origin correctly for failed-to-download events
- Date: Tue, 18 Dec 2018 01:13:20 +0000 (UTC)
commit a0b474022a654a87d0b05de97abe30bc85a84a24
Author: Kalev Lember <klember redhat com>
Date: Mon Dec 17 14:30:40 2018 +0100
odrs: trivial: Set origin correctly for failed-to-download events
... and tweak the action passed to the event.
plugins/odrs/gs-plugin-odrs.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/odrs/gs-plugin-odrs.c b/plugins/odrs/gs-plugin-odrs.c
index d1340985..e31319c9 100644
--- a/plugins/odrs/gs-plugin-odrs.c
+++ b/plugins/odrs/gs-plugin-odrs.c
@@ -211,8 +211,8 @@ gs_plugin_refresh (GsPlugin *plugin,
g_autoptr(GsPluginEvent) event = gs_plugin_event_new ();
gs_plugin_event_set_error (event, error_local);
- gs_plugin_event_set_action (event, GS_PLUGIN_ACTION_REFRESH);
- gs_plugin_event_set_app (event, priv->cached_origin);
+ gs_plugin_event_set_action (event, GS_PLUGIN_ACTION_DOWNLOAD);
+ gs_plugin_event_set_origin (event, priv->cached_origin);
if (gs_plugin_has_flags (plugin, GS_PLUGIN_FLAGS_INTERACTIVE))
gs_plugin_event_add_flag (event, GS_PLUGIN_EVENT_FLAG_INTERACTIVE);
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]