diff options
author | Dan McGee <dan@archlinux.org> | 2012-03-08 06:45:55 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-03-08 06:45:55 +0100 |
commit | 230eef669823565ba9c2745f6a8c52a726eb3720 (patch) | |
tree | c2d1adc57bc13f3a6cb9fad6543cccf8783cda58 /devel | |
parent | 271ae0f0a20cc0f558d1d6cde3b7eec67728f0c4 (diff) | |
download | archweb-230eef669823565ba9c2745f6a8c52a726eb3720.tar.gz archweb-230eef669823565ba9c2745f6a8c52a726eb3720.tar.xz |
Exclude all compressed manpages
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'devel')
-rw-r--r-- | devel/views.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/devel/views.py b/devel/views.py index 5f1aed5..d836bd7 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) |