[gnome-software] trivial: Add support for AS_APP_QUIRK_IS_PROXY
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Add support for AS_APP_QUIRK_IS_PROXY
- Date: Wed, 14 Dec 2016 11:19:51 +0000 (UTC)
commit 7004087b3c259caeb891ba85fa29d532b3298416
Author: Richard Hughes <richard hughsie com>
Date: Wed Dec 14 10:56:48 2016 +0000
trivial: Add support for AS_APP_QUIRK_IS_PROXY
src/gs-app.c | 2 ++
src/gs-app.h | 4 ++++
src/plugins/gs-plugin-generic-updates.c | 1 +
3 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-app.c b/src/gs-app.c
index 1d55856..d2e51b7 100644
--- a/src/gs-app.c
+++ b/src/gs-app.c
@@ -196,6 +196,8 @@ _as_app_quirk_flag_to_string (AsAppQuirk quirk)
return "not-launchable";
if (quirk == AS_APP_QUIRK_NEEDS_USER_ACTION)
return "needs-user-action";
+ if (quirk == AS_APP_QUIRK_IS_PROXY)
+ return "is-proxy";
return NULL;
}
diff --git a/src/gs-app.h b/src/gs-app.h
index 35a0599..a39c1d4 100644
--- a/src/gs-app.h
+++ b/src/gs-app.h
@@ -97,6 +97,10 @@ typedef enum {
GS_APP_QUALITY_LAST
} GsAppQuality;
+#if !AS_CHECK_VERSION(0,6,6)
+#define AS_APP_QUIRK_IS_PROXY (1 << 9)
+#endif
+
GsApp *gs_app_new (const gchar *id);
GsApp *gs_app_new_from_unique_id (const gchar *unique_id);
gchar *gs_app_to_string (GsApp *app);
diff --git a/src/plugins/gs-plugin-generic-updates.c b/src/plugins/gs-plugin-generic-updates.c
index b9b5ed5..6659263 100644
--- a/src/plugins/gs-plugin-generic-updates.c
+++ b/src/plugins/gs-plugin-generic-updates.c
@@ -54,6 +54,7 @@ gs_plugin_generic_updates_get_os_update (GsPlugin *plugin)
/* create new */
app = gs_app_new (id);
+ gs_app_add_quirk (app, AS_APP_QUIRK_IS_PROXY);
gs_app_set_management_plugin (app, "");
gs_app_set_kind (app, AS_APP_KIND_OS_UPDATE);
gs_app_set_state (app, AS_APP_STATE_UPDATABLE_LIVE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]