[gnome-software/gnome-3-24] 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-24] snap: Don't attempt to refine snaps without a valid name
- Date: Fri, 27 Oct 2017 00:46:27 +0000 (UTC)
commit 41363c426ddd872ffdfb6319ea12c7e3704486ec
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 d5355b1..5e9c251 100644
--- a/plugins/snap/gs-plugin-snap.c
+++ b/plugins/snap/gs-plugin-snap.c
@@ -449,6 +449,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 = gs_snapd_list_one (macaroon, discharges, id, cancellable, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]