[gnome-software/gnome-3-20] trivial: Use the new os-update component kind



commit 5cebfb9375128db503390394ed089e5245e1bedc
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 4f47533..ded0a9b 100644
--- a/src/plugins/gs-plugin-appstream.c
+++ b/src/plugins/gs-plugin-appstream.c
@@ -330,11 +330,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]