diff options
author | Dan McGee <dan@archlinux.org> | 2011-05-04 12:53:49 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-05-04 12:53:49 -0500 |
commit | 3fdc79b01066b91348ab655be890a0aa59aac8b8 (patch) | |
tree | f518f1d8c930e38d0baf903fd0426c5e2d8f5a1a /devel/views.py | |
parent | ef9faf4414edd013755431fb2e78d9e46d448cb8 (diff) |
Make uncompressed info query slightly easier on the database
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'devel/views.py')
-rw-r--r-- | devel/views.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/devel/views.py b/devel/views.py index 9c523f0a..555c7cc5 100644 --- a/devel/views.py +++ b/devel/views.py @@ -159,7 +159,9 @@ def report(request, report): packages = packages.filter(id__in=set(bad_files)) elif report == 'uncompressed-info': title = 'Packages with uncompressed infopages' - bad_files = PackageFile.objects.filter(directory__contains='/info', + # we don't worry abut looking for '*.info-1', etc., given that an + # uncompressed root page probably exists in the package anyway + bad_files = PackageFile.objects.filter(directory__endswith='/info/', filename__endswith='.info').values_list( 'pkg_id', flat=True).distinct() packages = packages.filter(id__in=set(bad_files)) |