[gnome-builder/gnome-builder-3-26] flatpak: be more aggressive ignoring runtimes



commit 21582f119d342012b24666b26e6f59ff2cbbade1
Author: Christian Hergert <chergert redhat com>
Date:   Sun Sep 24 21:16:16 2017 -0700

    flatpak: be more aggressive ignoring runtimes
    
    There might be a better way to check for this in the metadata,
    but that takes more effort right now.

 plugins/flatpak/gbp-flatpak-util.c |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/plugins/flatpak/gbp-flatpak-util.c b/plugins/flatpak/gbp-flatpak-util.c
index b920201..7364fd5 100644
--- a/plugins/flatpak/gbp-flatpak-util.c
+++ b/plugins/flatpak/gbp-flatpak-util.c
@@ -19,6 +19,7 @@
 #define G_LOG_DOMAIN "gbp-flatpak-util"
 
 #include <flatpak.h>
+#include <string.h>
 
 #include "gbp-flatpak-util.h"
 
@@ -82,8 +83,15 @@ gbp_flatpak_is_ignored (const gchar *name)
 
   return g_str_has_suffix (name, ".Locale") ||
          g_str_has_suffix (name, ".Debug") ||
+         g_str_has_suffix (name, ".Docs") ||
          g_str_has_suffix (name, ".Sources") ||
          g_str_has_suffix (name, ".Var") ||
-         g_str_has_prefix (name, "org.gtk.Gtk3theme.");
+         g_str_has_prefix (name, "org.gtk.Gtk3theme.") ||
+         strstr (name, ".GL.nvidia") != NULL ||
+         strstr (name, ".GL32.nvidia") != NULL ||
+         strstr (name, ".VAAPI") != NULL ||
+         strstr (name, ".Icontheme") != NULL ||
+         strstr (name, ".Extension") != NULL ||
+         strstr (name, ".Gtk3theme") != NULL;
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]