[gnome-software] flatpak: Don't try overwriting updatable-live with installed



commit 7a3953569f7d614bd0d1a3992330cb304b9c14c0
Author: Richard Hughes <richard hughsie com>
Date:   Wed Jul 13 11:30:03 2016 +0100

    flatpak: Don't try overwriting updatable-live with installed

 src/plugins/gs-flatpak.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-flatpak.c b/src/plugins/gs-flatpak.c
index a3ccb30..8304a40 100644
--- a/src/plugins/gs-flatpak.c
+++ b/src/plugins/gs-flatpak.c
@@ -402,7 +402,8 @@ gs_flatpak_add_installed (GsFlatpak *self, GsAppList *list,
                        g_warning ("failed to add flatpak: %s", error_local->message);
                        continue;
                }
-               gs_app_set_state (app, AS_APP_STATE_INSTALLED);
+               if (gs_app_get_state (app) == AS_APP_STATE_UNKNOWN)
+                       gs_app_set_state (app, AS_APP_STATE_INSTALLED);
                gs_app_list_add (list, app);
        }
 


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