[gnome-software/wip/hughsie/flatpak3: 8/9] flatpak: Fix the state of an uninstalled flatpakrepo file
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/hughsie/flatpak3: 8/9] flatpak: Fix the state of an uninstalled flatpakrepo file
- Date: Fri, 14 Jul 2017 14:55:17 +0000 (UTC)
commit fc601ca6f40742e04d313242b95ac4ac56f1fd0f
Author: Richard Hughes <richard hughsie com>
Date: Fri Jul 14 11:56:36 2017 +0100
flatpak: Fix the state of an uninstalled flatpakrepo file
plugins/flatpak/gs-flatpak-utils.c | 2 +-
plugins/flatpak/gs-self-test.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/flatpak/gs-flatpak-utils.c b/plugins/flatpak/gs-flatpak-utils.c
index f7c5742..bcae3ab 100644
--- a/plugins/flatpak/gs-flatpak-utils.c
+++ b/plugins/flatpak/gs-flatpak-utils.c
@@ -174,7 +174,7 @@ gs_flatpak_app_new_from_repo_file (GFile *file,
app = gs_flatpak_app_new (repo_id);
gs_flatpak_app_set_file_kind (app, GS_FLATPAK_APP_FILE_KIND_REPO);
gs_app_set_kind (app, AS_APP_KIND_SOURCE);
- gs_app_set_state (app, AS_APP_STATE_AVAILABLE);
+ gs_app_set_state (app, AS_APP_STATE_AVAILABLE_LOCAL);
gs_app_add_quirk (app, AS_APP_QUIRK_NOT_LAUNCHABLE);
gs_app_set_name (app, GS_APP_QUALITY_NORMAL, repo_title);
gs_flatpak_app_set_repo_gpgkey (app, repo_gpgkey);
diff --git a/plugins/flatpak/gs-self-test.c b/plugins/flatpak/gs-self-test.c
index 3d2145f..8455b1b 100644
--- a/plugins/flatpak/gs-self-test.c
+++ b/plugins/flatpak/gs-self-test.c
@@ -92,7 +92,7 @@ gs_plugins_flatpak_repo_func (GsPluginLoader *plugin_loader)
g_assert_no_error (error);
g_assert (app != NULL);
g_assert_cmpint (gs_app_get_kind (app), ==, AS_APP_KIND_SOURCE);
- g_assert_cmpint (gs_app_get_state (app), ==, AS_APP_STATE_AVAILABLE);
+ g_assert_cmpint (gs_app_get_state (app), ==, AS_APP_STATE_AVAILABLE_LOCAL);
g_assert_cmpstr (gs_app_get_id (app), ==, "example");
g_assert_cmpstr (gs_app_get_management_plugin (app), ==, "flatpak");
g_assert_cmpstr (gs_app_get_origin_hostname (app), ==, "localhost");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]