From 04da5f03b254a6000c92eb4e32bdfaa88724f4a4 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 8 Sep 2010 11:12:43 -0500 Subject: Use arch.agnostic flag everywhere Signed-off-by: Dan McGee --- feeds.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'feeds.py') diff --git a/feeds.py b/feeds.py index b149c4a9..c6395f87 100644 --- a/feeds.py +++ b/feeds.py @@ -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() -- cgit v1.2.3-55-g3dc8