[gnome-software/wip/temp/ubuntu-xenial-rebased: 39/326] Check refresh type



commit 2641808001b0deb4b2b60c438d476d288ee193a4
Author: Robert Ancell <robert ancell canonical com>
Date:   Fri Feb 5 13:38:55 2016 +1300

    Check refresh type

 src/plugins/gs-plugin-apt.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-apt.c b/src/plugins/gs-plugin-apt.c
index 31b2f60..d6b6ef1 100644
--- a/src/plugins/gs-plugin-apt.c
+++ b/src/plugins/gs-plugin-apt.c
@@ -402,5 +402,9 @@ gs_plugin_refresh (GsPlugin *plugin,
                   GError **error)
 {
        //g_printerr ("APT: gs_plugin_refresh\n");
+
+       if ((flags & GS_PLUGIN_REFRESH_FLAGS_UPDATES) == 0)
+               return TRUE;
+
        return aptd_transaction ("UpdateCache", NULL, error);
 }


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