[gnome-software/wip/hughsie/fix-xdg-app: 2/2] Only skip the xdg-app refine if the state is known



commit ce85773ad93b709418325956da58318cead9b852
Author: Richard Hughes <richard hughsie com>
Date:   Wed Feb 10 14:48:14 2016 +0000

    Only skip the xdg-app refine if the state is known
    
    All the states get reset after install/remove/updates-changed.

 src/plugins/gs-plugin-xdg-app.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-xdg-app.c b/src/plugins/gs-plugin-xdg-app.c
index 3c00906..74a23e8 100644
--- a/src/plugins/gs-plugin-xdg-app.c
+++ b/src/plugins/gs-plugin-xdg-app.c
@@ -742,7 +742,8 @@ gs_plugin_refine_item_action (GsPlugin *plugin,
        g_autoptr(AsProfileTask) ptask = NULL;
 
        /* already found */
-       if (gs_app_get_metadata_item (app, "XgdApp::type") != NULL)
+       if (gs_app_get_metadata_item (app, "XgdApp::type") != NULL &&
+           gs_app_get_state (app) != AS_APP_STATE_UNKNOWN)
                return TRUE;
 
        /* get apps and runtimes */


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