[gnome-software] snap: Fix self test with recent snapd-glib
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] snap: Fix self test with recent snapd-glib
- Date: Fri, 3 Aug 2018 04:27:24 +0000 (UTC)
commit 558f397fe28d8c27b8c994a4a33c5b30ef092e3b
Author: Robert Ancell <robert ancell canonical com>
Date: Fri Aug 3 16:20:43 2018 +1200
snap: Fix self test with recent snapd-glib
plugins/snap/gs-self-test.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/plugins/snap/gs-self-test.c b/plugins/snap/gs-self-test.c
index 198e7f5a..6988be40 100644
--- a/plugins/snap/gs-self-test.c
+++ b/plugins/snap/gs-self-test.c
@@ -74,15 +74,18 @@ snapd_client_set_user_agent (SnapdClient *client, const gchar *user_agent)
SnapdSystemInformation *
snapd_client_get_system_information_sync (SnapdClient *client, GCancellable *cancellable, GError **error)
{
+ g_autoptr(GHashTable) sandbox_features = g_hash_table_new (g_str_hash, g_str_equal);
return g_object_new (SNAPD_TYPE_SYSTEM_INFORMATION,
"version", "2.31",
"confinement", SNAPD_SYSTEM_CONFINEMENT_STRICT,
+ "sandbox-features", sandbox_features,
NULL);
}
static SnapdSnap *
make_snap (const gchar *name, SnapdSnapStatus status)
{
+ gchar *common_ids[] = { NULL };
g_autoptr(GDateTime) install_date = NULL;
g_autoptr(GPtrArray) apps = NULL;
g_autoptr(GPtrArray) screenshots = NULL;
@@ -108,6 +111,7 @@ make_snap (const gchar *name, SnapdSnapStatus status)
return g_object_new (SNAPD_TYPE_SNAP,
"apps", status == SNAPD_SNAP_STATUS_INSTALLED ? apps : NULL,
+ "common-ids", common_ids,
"description", "DESCRIPTION",
"download-size", status == SNAPD_SNAP_STATUS_AVAILABLE ? 500 : 0,
"icon", "/icon",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]