Blame SOURCES/be-able-to-disable-odrs.patch

fa3848
From b50003ed83cab2c6cf6654e5972d6ee3e2303eb6 Mon Sep 17 00:00:00 2001
fa3848
From: Milan Crha <mcrha@redhat.com>
fa3848
Date: Tue, 16 Feb 2021 16:09:08 +0100
fa3848
Subject: [PATCH] odrs: Cannot be disabled by filling empty 'review-server'
fa3848
 setting
fa3848
fa3848
Closes https://gitlab.gnome.org/GNOME/gnome-software/-/issues/1143
fa3848
---
fa3848
 plugins/odrs/gs-plugin-odrs.c | 2 ++
fa3848
 1 file changed, 2 insertions(+)
fa3848
fa3848
diff --git a/plugins/odrs/gs-plugin-odrs.c b/plugins/odrs/gs-plugin-odrs.c
fa3848
index f0c0c3b91..2c9bd878d 100644
fa3848
--- a/plugins/odrs/gs-plugin-odrs.c
fa3848
+++ b/plugins/odrs/gs-plugin-odrs.c
fa3848
@@ -175,6 +175,8 @@ gs_plugin_initialize (GsPlugin *plugin)
fa3848
 
fa3848
 	/* set name of MetaInfo file */
fa3848
 	gs_plugin_set_appstream_id (plugin, "org.gnome.Software.Plugin.Odrs");
fa3848
+
fa3848
+	gs_plugin_set_enabled (plugin, priv->review_server && *priv->review_server);
fa3848
 }
fa3848
 
fa3848
 static GArray *
fa3848
-- 
fa3848
GitLab
fa3848