diff options
author | Dan McGee <dan@archlinux.org> | 2012-07-31 00:16:36 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-07-31 00:16:36 -0500 |
commit | c03b9c5f10b1695c4a099a578f19e09b33c6df10 (patch) | |
tree | 8910ea7dd4aebe7343196da467161b39ce01053b /feeds.py | |
parent | 0cc369e985dd6376f0367e4b57e980ce14231796 (diff) |
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.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |