[gnome-software/wip/ubuntu-xenial] Update new upstream refresh flag
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/ubuntu-xenial] Update new upstream refresh flag
- Date: Mon, 15 Aug 2016 04:46:28 +0000 (UTC)
commit 4035ca9effc7b1fc75119ba62373dfc529f3fa2b
Author: Robert Ancell <robert ancell canonical com>
Date: Mon Aug 15 16:46:22 2016 +1200
Update new upstream refresh flag
src/gs-application.c | 4 ++--
src/gs-plugin.h | 3 +--
src/plugins/gs-plugin-apt.cc | 2 +-
3 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/gs-application.c b/src/gs-application.c
index 4e4c40f..68bb925 100644
--- a/src/gs-application.c
+++ b/src/gs-application.c
@@ -254,7 +254,7 @@ refreshed_cb (GObject *source_object,
if (gs_plugin_loader_refresh_finish (loader, res, NULL)) {
gs_plugin_loader_refresh_async (loader,
0,
- GS_PLUGIN_REFRESH_FLAGS_UPDATES | GS_PLUGIN_REFRESH_FLAGS_UI,
+ GS_PLUGIN_REFRESH_FLAGS_METADATA | GS_PLUGIN_REFRESH_FLAGS_UI,
NULL,
NULL,
NULL);
@@ -270,7 +270,7 @@ start_refresh (GsApplication *app)
gs_plugin_loader_refresh_async (gs_application_get_plugin_loader (app),
0,
- GS_PLUGIN_REFRESH_FLAGS_UPDATES | GS_PLUGIN_REFRESH_FLAGS_UI,
+ GS_PLUGIN_REFRESH_FLAGS_METADATA | GS_PLUGIN_REFRESH_FLAGS_UI,
NULL,
refreshed_cb,
app);
diff --git a/src/gs-plugin.h b/src/gs-plugin.h
index bd1c044..f13bd0e 100644
--- a/src/gs-plugin.h
+++ b/src/gs-plugin.h
@@ -139,8 +139,7 @@ typedef enum {
GS_PLUGIN_REFRESH_FLAGS_METADATA = 1 << 0,
GS_PLUGIN_REFRESH_FLAGS_PAYLOAD = 1 << 1,
GS_PLUGIN_REFRESH_FLAGS_INTERACTIVE = 1 << 2,
- GS_PLUGIN_REFRESH_FLAGS_UPDATES = 1 << 3,
- GS_PLUGIN_REFRESH_FLAGS_UI = 1 << 4,
+ GS_PLUGIN_REFRESH_FLAGS_UI = 1 << 3,
/*< private >*/
GS_PLUGIN_REFRESH_FLAGS_LAST
} GsPluginRefreshFlags;
diff --git a/src/plugins/gs-plugin-apt.cc b/src/plugins/gs-plugin-apt.cc
index 04451b3..ff3578a 100644
--- a/src/plugins/gs-plugin-apt.cc
+++ b/src/plugins/gs-plugin-apt.cc
@@ -965,7 +965,7 @@ gs_plugin_refresh (GsPlugin *plugin,
GCancellable *cancellable,
GError **error)
{
- if ((flags & GS_PLUGIN_REFRESH_FLAGS_UPDATES) == 0)
+ if ((flags & GS_PLUGIN_REFRESH_FLAGS_METADATA) == 0)
return TRUE;
if (!aptd_transaction (plugin, "UpdateCache", NULL, NULL, NULL, error))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]