[gnome-software] trivial: Don't toggle the dummy allow-updates property by default



commit 3ecf5ec5423af317188fcd693523a79875130dd7
Author: Richard Hughes <richard hughsie com>
Date:   Fri May 12 15:13:12 2017 +0100

    trivial: Don't toggle the dummy allow-updates property by default

 plugins/dummy/gs-plugin-dummy.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/plugins/dummy/gs-plugin-dummy.c b/plugins/dummy/gs-plugin-dummy.c
index c86ffe2..1cd3b52 100644
--- a/plugins/dummy/gs-plugin-dummy.c
+++ b/plugins/dummy/gs-plugin-dummy.c
@@ -65,8 +65,10 @@ gs_plugin_initialize (GsPlugin *plugin)
        gs_plugin_add_flags (plugin, GS_PLUGIN_FLAGS_GLOBAL_CACHE);
 
        /* toggle this */
-       priv->allow_updates_id = g_timeout_add_seconds (10,
-               gs_plugin_dummy_allow_updates_cb, plugin);
+       if (g_getenv ("GS_SELF_TEST_TOGGLE_ALLOW_UPDATES") != NULL) {
+               priv->allow_updates_id = g_timeout_add_seconds (10,
+                       gs_plugin_dummy_allow_updates_cb, plugin);
+       }
 
        /* set up a dummy authentication provider */
        priv->auth = gs_auth_new (gs_plugin_get_name (plugin));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]