summaryrefslogtreecommitdiff
path: root/feeds.py
diff options
context:
space:
mode:
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