Exclude "Distro-specific" from "unknown/not available" in other distro search

If you're searching for items that are of status "unknown/not available"
in the other distro packages, you're usually doing so to find things
that haven't been dispositioned. Originally I had included them here
because the "available" status correctly excludes items with the
"distro-specific" status and "unknown/not available" seemed like it
should be the inverse, but usage seems to require that it not be.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
Paul Eggleton 2018-11-01 08:48:47 +13:00
parent eaae0d8b02
commit 3c25eda61e

View File

@ -1140,7 +1140,7 @@ class ClassicRecipeSearchView(RecipeSearchView):
cover_null = False
if cover_status:
if cover_status == '!':
init_qs = init_qs.filter(cover_status__in=['U', 'N', 'S'])
init_qs = init_qs.filter(cover_status__in=['U', 'N'])
elif cover_status == '#':
init_qs = init_qs.exclude(cover_status__in=['U', 'N', 'S'])
else: