diff options
author | Dan McGee <dan@archlinux.org> | 2010-09-08 11:12:43 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-09-08 11:12:43 -0500 |
commit | 04da5f03b254a6000c92eb4e32bdfaa88724f4a4 (patch) | |
tree | ce7dd0ff708ce92e37b52a2ff4f6f9cad35bed7a /feeds.py | |
parent | 5c78ad746942cafa03ed4834eefac98832021558 (diff) |
Use arch.agnostic flag everywhere
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'feeds.py')
-rw-r--r-- | feeds.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -18,7 +18,7 @@ class PackageFeed(Feed): if arch != '': # feed for a single arch, also include 'any' packages everywhere a = Arch.objects.get(name=arch) - qs = qs.filter(Q(arch=a) | Q(arch__name='any')) + qs = qs.filter(Q(arch=a) | Q(arch__agnostic=True)) obj['arch'] = a if repo != '': # feed for a single arch AND repo @@ -40,7 +40,7 @@ class PackageFeed(Feed): s = 'Recently updated packages in the Arch Linux package repositories' if 'arch' in obj: s += ' for the \'%s\' architecture' % obj['arch'].name.lower() - if obj['arch'].name != 'any': + if not obj['arch'].agnostic: s += ' (including \'any\' packages)' if 'repo' in obj: s += ' in the [%s] repository' % obj['repo'].name.lower() |