summaryrefslogtreecommitdiff
path: root/feeds.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-09-08 11:12:43 -0500
committerDan McGee <dan@archlinux.org>2010-09-08 11:12:43 -0500
commit04da5f03b254a6000c92eb4e32bdfaa88724f4a4 (patch)
treece7dd0ff708ce92e37b52a2ff4f6f9cad35bed7a /feeds.py
parent5c78ad746942cafa03ed4834eefac98832021558 (diff)
Use arch.agnostic flag everywhere
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'feeds.py')
-rw-r--r--feeds.py4
1 files changed, 2 insertions, 2 deletions
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()