summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2016-01-19 21:33:52 +0100
committerAlexander Larsson <alexl@redhat.com>2016-01-19 21:33:52 +0100
commit67a1423991010efd052a374fb9444f03cd211767 (patch)
tree91f18fa4f71a1487fd41ce5f04d59ff1940d6e80
parentd27403e2dff0fea6123554e5deb7ccc825449a33 (diff)
downloadappstream-glib-67a1423991010efd052a374fb9444f03cd211767.tar.gz
ostree: Remove unnecessary workarounds for bundle paths
This is not needed anymore, as we rewrite the bundle paths to look like /usr/...
-rw-r--r--libappstream-builder/asb-plugin.c8
1 files changed, 0 insertions, 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);
}