summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-05-04 12:53:49 -0500
committerDan McGee <dan@archlinux.org>2011-05-04 12:53:49 -0500
commit3fdc79b01066b91348ab655be890a0aa59aac8b8 (patch)
treef518f1d8c930e38d0baf903fd0426c5e2d8f5a1a /devel
parentef9faf4414edd013755431fb2e78d9e46d448cb8 (diff)
Make uncompressed info query slightly easier on the database
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'devel')
-rw-r--r--devel/views.py4
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))