Previously, only the 'classes' path was searched, but we should also be
searching
'classes-global' and 'classes-recipe' since:
bitbake f33ce7e7
'BBHandler/cooker: Implement recipe and global classes'
and
oe-core f5c12800
'classes: Update classes to match new bitbake class scope functionality'
This requires changes not only in models.py, but also in recipeparse.py,
update_layer.py
and views.py.
While we are at it, add "Global" and "Recipe" 'badges' next to the class names
in the
appropriate class view templates.
[YOCTO #15238]
The following changes since commit 83378f2f9c881505027220a98514bcb933d82682:
global: deprecated pkg_resources parse_version (2024-01-22 16:08:37 -0800)
are available in the Git repository at:
https://github.com/moto-timo/layerindex-web timo/classes-global-recipe
https://github.com/moto-timo/layerindex-web/tree/timo/classes-global-recipe
Tim Orling (5):
layerindex/models: add BBClassRecipe BBClassGlobal
layerindex/recipeparse.py: extend bbclass regex
layerindex/views: add classes-recipe,-global
templates: add bbclasstype badge
layerindex/update_layer.py: enable classes-global,-recipe
...obal_bbclassrecipe_bbclass_bbclass_type.py | 41 ++++++++++++++++++
layerindex/models.py | 43 ++++++++++++++++++-
layerindex/recipeparse.py | 4 +-
layerindex/update_layer.py | 19 ++++++--
layerindex/views.py | 3 +-
templates/layerindex/classes.html | 5 ++-
templates/layerindex/detail.html | 5 ++-
7 files changed, 111 insertions(+), 9 deletions(-)
create mode 100644
layerindex/migrations/0048_bbclassglobal_bbclassrecipe_bbclass_bbclass_type.py
--
2.34.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#62232): https://lists.yoctoproject.org/g/yocto/message/62232
Mute This Topic: https://lists.yoctoproject.org/mt/103903650/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-