[gnome-builder] flatpak: check for ignored status of installed runtimes
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] flatpak: check for ignored status of installed runtimes
- Date: Mon, 25 Sep 2017 22:02:27 +0000 (UTC)
commit 1d67b64ddb3f0322f73a2178e7b751be37aa5b99
Author: Christian Hergert <chergert redhat com>
Date: Mon Sep 25 14:59:43 2017 -0700
flatpak: check for ignored status of installed runtimes
Not all runtimes that we install should be displayed to the user, so filter
the ones like .Docs or .Locale.
src/plugins/flatpak/gbp-flatpak-runtime-provider.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/flatpak/gbp-flatpak-runtime-provider.c
b/src/plugins/flatpak/gbp-flatpak-runtime-provider.c
index ec1c33e..75c2bb2 100644
--- a/src/plugins/flatpak/gbp-flatpak-runtime-provider.c
+++ b/src/plugins/flatpak/gbp-flatpak-runtime-provider.c
@@ -28,6 +28,7 @@
#include "gbp-flatpak-runtime.h"
#include "gbp-flatpak-runtime-provider.h"
#include "gbp-flatpak-transfer.h"
+#include "gbp-flatpak-util.h"
typedef struct
{
@@ -91,6 +92,7 @@ runtime_added_cb (GbpFlatpakRuntimeProvider *self,
{
g_autoptr(GbpFlatpakRuntime) new_runtime = NULL;
g_autoptr(GError) error = NULL;
+ const gchar *name;
IdeContext *context;
IDE_ENTRY;
@@ -100,6 +102,10 @@ runtime_added_cb (GbpFlatpakRuntimeProvider *self,
g_assert (GBP_IS_FLATPAK_RUNTIME_PROVIDER (self));
g_assert (IDE_IS_RUNTIME_MANAGER (self->manager));
+ name = flatpak_ref_get_name (FLATPAK_REF (ref));
+ if (gbp_flatpak_is_ignored (name))
+ IDE_EXIT;
+
for (guint i = 0; i < self->runtimes->len; i++)
{
GbpFlatpakRuntime *runtime = g_ptr_array_index (self->runtimes, i);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]