[gnome-software] core: Don't try to set the runtime on a runtime
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] core: Don't try to set the runtime on a runtime
- Date: Fri, 7 Jul 2017 14:17:35 +0000 (UTC)
commit 1b7ed341f0eb40feb6108a9e431d61814a9b1d24
Author: Richard Hughes <richard hughsie com>
Date: Fri Jul 7 15:15:03 2017 +0100
core: Don't try to set the runtime on a runtime
Removes a common warning from the journal at startup.
plugins/core/gs-appstream.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plugins/core/gs-appstream.c b/plugins/core/gs-appstream.c
index cecf996..28d2dd4 100644
--- a/plugins/core/gs-appstream.c
+++ b/plugins/core/gs-appstream.c
@@ -379,7 +379,8 @@ gs_refine_item_management_plugin (GsPlugin *plugin, GsApp *app, AsApp *item)
gs_app_add_source (app, as_bundle_get_id (bundle));
/* automatically add runtime */
- if (kind == AS_BUNDLE_KIND_FLATPAK) {
+ if (kind == AS_BUNDLE_KIND_FLATPAK &&
+ gs_app_get_kind (app) != AS_APP_KIND_RUNTIME) {
runtime = as_bundle_get_runtime (bundle);
if (runtime != NULL) {
g_autoptr(GsApp) app2 = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]