summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-03-07 23:45:55 -0600
committerDan McGee <dan@archlinux.org>2012-03-07 23:45:55 -0600
commit230eef669823565ba9c2745f6a8c52a726eb3720 (patch)
treec2d1adc57bc13f3a6cb9fad6543cccf8783cda58
parent271ae0f0a20cc0f558d1d6cde3b7eec67728f0c4 (diff)
Exclude all compressed manpages
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--devel/views.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/devel/views.py b/devel/views.py
index 5f1aed54..d836bd78 100644
--- a/devel/views.py
+++ b/devel/views.py
@@ -212,7 +212,10 @@ def report(request, report_name, username=None):
bad_files = PackageFile.objects.filter(is_directory=False,
directory__contains='/man/',
filename__regex=r'\.[0-9n]').exclude(
- filename__endswith='.gz').exclude(filename__endswith='.html')
+ filename__endswith='.gz').exclude(
+ filename__endswith='.xz').exclude(
+ filename__endswith='.bz2').exclude(
+ filename__endswith='.html')
if username:
pkg_ids = set(packages.values_list('id', flat=True))
bad_files = bad_files.filter(pkg__in=pkg_ids)