[gnome-software/gnome-3-26] snap: Don't attempt to refine snaps without a valid name
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-26] snap: Don't attempt to refine snaps without a valid name
- Date: Thu, 26 Oct 2017 01:12:42 +0000 (UTC)
commit 237ebf884ed66aba587a5cd3daf4685c86f5279a
Author: Robert Ancell <robert ancell canonical com>
Date: Thu Oct 26 14:12:15 2017 +1300
snap: Don't attempt to refine snaps without a valid name
plugins/snap/gs-plugin-snap.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plugins/snap/gs-plugin-snap.c b/plugins/snap/gs-plugin-snap.c
index cc2a6cb..93d7523 100644
--- a/plugins/snap/gs-plugin-snap.c
+++ b/plugins/snap/gs-plugin-snap.c
@@ -649,6 +649,8 @@ gs_plugin_refine_app (GsPlugin *plugin,
id = gs_app_get_id (app);
if (id == NULL)
id = gs_app_get_source_default (app);
+ if (id == NULL)
+ return TRUE;
/* get information from installed snaps */
local_snap = snapd_client_list_one_sync (client, id, cancellable, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]