summaryrefslogtreecommitdiffstats
path: root/feeds.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-07-31 00:16:36 -0500
committerDan McGee <dan@archlinux.org>2012-07-31 00:16:36 -0500
commitc03b9c5f10b1695c4a099a578f19e09b33c6df10 (patch)
tree8910ea7dd4aebe7343196da467161b39ce01053b /feeds.py
parent0cc369e985dd6376f0367e4b57e980ce14231796 (diff)
downloadarchweb-c03b9c5f10b1695c4a099a578f19e09b33c6df10.tar.gz
archweb-c03b9c5f10b1695c4a099a578f19e09b33c6df10.zip
feeds: add all arches for repo feed
If you wanted to see all updates regardless of architecture for [testing] before, there wasn't really a way to do so. Add one. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'feeds.py')
-rw-r--r--feeds.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/feeds.py b/feeds.py
index d6a97533..55275ead 100644
--- a/feeds.py
+++ b/feeds.py
@@ -71,8 +71,10 @@ class PackageFeed(Feed):
def title(self, obj):
s = 'Arch Linux: Recent package updates'
- if 'repo' in obj:
+ if 'repo' in obj and 'arch' in obj:
s += ' (%s [%s])' % (obj['arch'].name, obj['repo'].name.lower())
+ elif 'repo' in obj:
+ s += ' [%s]' % (obj['repo'].name.lower())
elif 'arch' in obj:
s += ' (%s)' % (obj['arch'].name)
return s