From 67a1423991010efd052a374fb9444f03cd211767 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Tue, 19 Jan 2016 21:33:52 +0100 Subject: ostree: Remove unnecessary workarounds for bundle paths This is not needed anymore, as we rewrite the bundle paths to look like /usr/... --- libappstream-builder/asb-plugin.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/libappstream-builder/asb-plugin.c b/libappstream-builder/asb-plugin.c index 3ba36b8..edfe92e 100644 --- a/libappstream-builder/asb-plugin.c +++ b/libappstream-builder/asb-plugin.c @@ -102,7 +102,6 @@ asb_plugin_add_app (GList **list, AsApp *app) void asb_plugin_add_glob (GPtrArray *array, const gchar *glob) { - /* handle bundles automatically */ g_ptr_array_add (array, asb_glob_value_new (glob, "")); } @@ -118,12 +117,5 @@ asb_plugin_add_glob (GPtrArray *array, const gchar *glob) gboolean asb_plugin_match_glob (const gchar *glob, const gchar *value) { - /* handle bundles automatically */ - if (g_str_has_prefix (glob, "/usr/")) { - g_autofree gchar *glob_bundle = NULL; - glob_bundle = g_strdup_printf ("/files/%s", glob + 5); - if (fnmatch (glob_bundle, value, 0) == 0) - return TRUE; - } return (fnmatch (glob, value, 0) == 0); } -- cgit v1.2.1