[gnome-software] trivial: Use the new os-update component kind
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Use the new os-update component kind
- Date: Mon, 11 Apr 2016 08:48:48 +0000 (UTC)
commit 99809c32f1a803c79a60938efd753befb3647c72
Author: Richard Hughes <richard hughsie com>
Date: Fri Apr 1 13:31:26 2016 +0100
trivial: Use the new os-update component kind
src/plugins/gs-plugin-appstream.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/src/plugins/gs-plugin-appstream.c b/src/plugins/gs-plugin-appstream.c
index 7da7464..ced6cbc 100644
--- a/src/plugins/gs-plugin-appstream.c
+++ b/src/plugins/gs-plugin-appstream.c
@@ -337,11 +337,7 @@ gs_plugin_add_distro_upgrades (GsPlugin *plugin,
for (i = 0; i < array->len; i++) {
g_autoptr(GsApp) app = NULL;
item = g_ptr_array_index (array, i);
-
- // FIXME: AS_APP_KIND_OS_UPGRADE
- if (as_app_get_kind (item) != AS_APP_KIND_UNKNOWN)
- continue;
- if (as_app_get_metadata_item (item, "X-IsUpgrade") == NULL)
+ if (as_app_get_kind (item) != AS_APP_KIND_OS_UPDATE)
continue;
/* create */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]