[gnome-software] trivial: Actually use the correct enums from pk_package_get_info()



commit 9eed7f203ebc23c7cc10ca19bae5c4d599af2052
Author: Richard Hughes <richard hughsie com>
Date:   Wed Nov 26 19:46:25 2014 +0000

    trivial: Actually use the correct enums from pk_package_get_info()

 src/plugins/gs-plugin-packagekit-refine.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/gs-plugin-packagekit-refine.c b/src/plugins/gs-plugin-packagekit-refine.c
index b8aa28f..992c0b5 100644
--- a/src/plugins/gs-plugin-packagekit-refine.c
+++ b/src/plugins/gs-plugin-packagekit-refine.c
@@ -177,7 +177,7 @@ gs_plugin_packagekit_resolve_packages_app (GsPlugin *plugin,
                                gs_app_set_management_plugin (app, "PackageKit");
                                gs_app_add_source_id (app, pk_package_get_id (package));
                                switch (pk_package_get_info (package)) {
-                               case AS_APP_STATE_INSTALLED:
+                               case PK_INFO_ENUM_INSTALLED:
                                        number_installed++;
                                        data = pk_package_get_data (package);
                                        if (g_str_has_prefix (data, "installed:")) {
@@ -186,7 +186,7 @@ gs_plugin_packagekit_resolve_packages_app (GsPlugin *plugin,
                                                                                 data + 10);
                                        }
                                        break;
-                               case AS_APP_STATE_AVAILABLE:
+                               case PK_INFO_ENUM_AVAILABLE:
                                        number_available++;
                                        break;
                                default:


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