mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 20:59:01 +02:00
Fix listing *_git.bbappend as appends for git recipe
Fix a greedy regex in the recipe detail view resulting in the git recipe listing all bbappends named *_git.bbappend as its bbappends (quite a few in the public instance). Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
parent
d0719ca951
commit
c1bce2795f
1
TODO
1
TODO
|
@ -10,7 +10,6 @@ TODO:
|
||||||
* Make it easy to update people's email addresses
|
* Make it easy to update people's email addresses
|
||||||
|
|
||||||
Bugs
|
Bugs
|
||||||
* git recipe shows up all _git bbappends: http://layers.openembedded.org/layerindex/recipe/5542/
|
|
||||||
* Duplication of first maintainer when editing to add a second?
|
* Duplication of first maintainer when editing to add a second?
|
||||||
* PROVIDES column appears to be too short for some recipes
|
* PROVIDES column appears to be too short for some recipes
|
||||||
|
|
||||||
|
|
|
@ -672,7 +672,7 @@ class RecipeDetailView(DetailView):
|
||||||
verappendprefix = recipe.filename.split('.bb')[0]
|
verappendprefix = recipe.filename.split('.bb')[0]
|
||||||
appendprefix = verappendprefix.split('_')[0]
|
appendprefix = verappendprefix.split('_')[0]
|
||||||
#context['verappends'] = BBAppend.objects.filter(layerbranch__branch=recipe.layerbranch.branch).filter(filename='%s.bbappend' % verappendprefix)
|
#context['verappends'] = BBAppend.objects.filter(layerbranch__branch=recipe.layerbranch.branch).filter(filename='%s.bbappend' % verappendprefix)
|
||||||
context['appends'] = BBAppend.objects.filter(layerbranch__branch=recipe.layerbranch.branch).filter(filename__regex=r'%s(_[^_]*)?\.bbappend' % appendprefix)
|
context['appends'] = BBAppend.objects.filter(layerbranch__branch=recipe.layerbranch.branch).filter(filename__regex=r'^%s(_[^_]*)?\.bbappend' % appendprefix)
|
||||||
verappends = []
|
verappends = []
|
||||||
for append in context['appends']:
|
for append in context['appends']:
|
||||||
if append.matches_recipe(recipe):
|
if append.matches_recipe(recipe):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user