[gnome-software/gnome-3-26] snap: Don't crash on unknown snap types
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-26] snap: Don't crash on unknown snap types
- Date: Thu, 26 Oct 2017 00:57:43 +0000 (UTC)
commit 87458056f7705aa7f30c58cd687a57f6468de345
Author: Robert Ancell <robert ancell canonical com>
Date: Thu Oct 26 13:56:43 2017 +1300
snap: Don't crash on unknown snap types
plugins/snap/gs-plugin-snap.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plugins/snap/gs-plugin-snap.c b/plugins/snap/gs-plugin-snap.c
index 3ebb352..cc2a6cb 100644
--- a/plugins/snap/gs-plugin-snap.c
+++ b/plugins/snap/gs-plugin-snap.c
@@ -287,7 +287,8 @@ snap_to_app (GsPlugin *plugin, SnapdSnap *snap)
break;
default:
case SNAPD_SNAP_TYPE_UNKNOWN:
- break;
+ unique_id = g_strdup_printf ("system/snap/*/*/%s/*", snapd_snap_get_name (snap));
+ break;
}
cached_app = gs_plugin_cache_lookup (plugin, unique_id);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]