diff options
author | Richard Hughes <richard@hughsie.com> | 2016-10-19 21:25:28 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2016-10-19 21:25:52 +0100 |
commit | 8ae3b527f9e453127f6fd72f24fbb4a613ac60d9 (patch) | |
tree | d39559f0ca19612ea653b88961658f4fed880a5d | |
parent | a6c499d3b414237fca43c77b18300e8d753d6770 (diff) | |
download | appstream-glib-8ae3b527f9e453127f6fd72f24fbb4a613ac60d9.tar.gz |
Always copy the installed state when replacing AppData with AppStream
This only appears to happen on Debian for some reason.
-rw-r--r-- | libappstream-glib/as-store.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libappstream-glib/as-store.c b/libappstream-glib/as-store.c index 7cd2d4f..0c85da6 100644 --- a/libappstream-glib/as-store.c +++ b/libappstream-glib/as-store.c @@ -1122,6 +1122,8 @@ as_store_add_app (AsStore *store, AsApp *app) g_debug ("removing %s entry: %s", as_app_source_kind_to_string (as_app_get_source_kind (item)), as_app_get_unique_id (item)); + if (as_app_get_state (item) == AS_APP_STATE_INSTALLED) + as_app_set_state (app, AS_APP_STATE_INSTALLED); as_store_remove_app (store, item); } |