summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
Diffstat (limited to 'public')
-rw-r--r--public/utils.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/public/utils.py b/public/utils.py
index 30c76ac..6566b8c 100644
--- a/public/utils.py
+++ b/public/utils.py
@@ -11,6 +11,13 @@ class RecentUpdate(object):
self.pkgbase = first.pkgbase
self.repo = first.repo
self.version = ''
+ self.classes = set()
+
+ self.classes.add(self.repo.name.lower())
+ if self.repo.testing:
+ self.classes.add('testing')
+ if self.repo.staging:
+ self.classes.add('staging')
packages = sorted(packages, key=attrgetter('arch', 'pkgname'))
# split the packages into two lists. we need to prefer packages