summaryrefslogtreecommitdiff
path: root/recipes
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2022-11-23 11:46:08 +1100
committerNirbheek Chauhan <nirbheek@centricular.com>2022-12-09 19:51:04 +0000
commit9b01a2b8a3f7f18398a4c5dc24c0d33c23689d05 (patch)
treedb79aad38001f596280fc34b1654602631377a8a /recipes
parentec673ad4cdac5fc0201b0d1a9a83ae418bf7cc24 (diff)
filesprovider: provide method to update categories
Caching the list of categories at __init__ time will miss any categories added during a recipe's prepare() method. Provide a way to update the categories list manually and use that when adding a new category when enabling a plugin with a separate category. Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1030>
Diffstat (limited to 'recipes')
-rw-r--r--recipes/custom.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/recipes/custom.py b/recipes/custom.py
index 130e97ca..980f1749 100644
--- a/recipes/custom.py
+++ b/recipes/custom.py
@@ -75,6 +75,7 @@ class GStreamer(recipe.Recipe):
plugin = 'lib/gstreamer-1.0/libgst' + plugin
if not hasattr(self, 'files_plugins_' + category):
setattr(self, 'files_plugins_' + category, [])
+ self.update_categories()
f = getattr(self, 'files_plugins_' + category)
f += [plugin + '%(mext)s']
if not hasattr(self, 'files_plugins_{}_devel'.format(category)):