From 3c25eda61ea9fc91ebb3562d7cb69c6545e9cb34 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Thu, 1 Nov 2018 08:48:47 +1300 Subject: [PATCH] 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 --- layerindex/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layerindex/views.py b/layerindex/views.py index 143cfd7..51b7a81 100644 --- a/layerindex/views.py +++ b/layerindex/views.py @@ -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: