mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-05 13:14:46 +02:00
update_classic_status: fix matching on wrong layer
We were sorting the layers in the wrong order when trying to choose which layer to pick a matching recipe from - it needs to be descending priority order, not ascending. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
parent
98be24336b
commit
7b9cea66a4
|
@ -68,7 +68,7 @@ def main():
|
|||
try:
|
||||
with transaction.atomic():
|
||||
def recipe_pn_query(pn):
|
||||
return Recipe.objects.filter(layerbranch__branch__name='master').filter(pn=pn).order_by('layerbranch__layer__index_preference')
|
||||
return Recipe.objects.filter(layerbranch__branch__name='master').filter(pn=pn).order_by('-layerbranch__layer__index_preference')
|
||||
|
||||
recipequery = ClassicRecipe.objects.filter(layerbranch=layerbranch).filter(cover_status__in=['U', 'N'])
|
||||
for recipe in recipequery:
|
||||
|
|
Loading…
Reference in New Issue
Block a user