[gnome-software] trivial: Do not use the AsApp state for the GsApp



commit a2ff48d35186cc612e19ceeb8164b1cb1b645375
Author: Richard Hughes <richard hughsie com>
Date:   Tue Jul 11 16:50:15 2017 +0100

    trivial: Do not use the AsApp state for the GsApp
    
    This does not work when we're using metadata additions for sandboxed apps like flatpaks.

 plugins/core/gs-appstream.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/plugins/core/gs-appstream.c b/plugins/core/gs-appstream.c
index 28d2dd4..5e7b99c 100644
--- a/plugins/core/gs-appstream.c
+++ b/plugins/core/gs-appstream.c
@@ -583,12 +583,6 @@ gs_appstream_refine_app (GsPlugin *plugin,
                gs_app_set_kind (app, as_app_get_kind (item));
        }
 
-       /* is installed already */
-       if (gs_app_get_state (app) == AS_APP_STATE_UNKNOWN &&
-           as_app_get_state (item) == AS_APP_STATE_INSTALLED) {
-               gs_app_set_state (app, as_app_get_state (item));
-       }
-
        /* is compatible */
        req = as_app_get_require_by_value (item,
                                           AS_REQUIRE_KIND_ID,


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