summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-02-26 19:37:15 -0600
committerDan McGee <dan@archlinux.org>2010-02-26 19:37:15 -0600
commit0a6c760b35e20326d51185bd53886686b5e2ec93 (patch)
treeef02ac718534538484007e5aea76567cd551a732 /public
parent548ed9dc75ea7c05f7be355a7efd1398d4cfe422 (diff)
Only group packages if they are in the same repo
Fixes FS#18436. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'public')
-rw-r--r--public/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/utils.py b/public/utils.py
index a7e37323..f4418d13 100644
--- a/public/utils.py
+++ b/public/utils.py
@@ -10,7 +10,7 @@ def get_recent_updates():
pkgs += list(Package.objects.select_related('arch', 'repo').filter(arch=a).order_by('-last_update')[:50])
pkgs.sort(reverse=True, key=lambda q: q.last_update)
for p in pkgs:
- samepkgs = filter(lambda q: p.is_same_version(q), pkgs)
+ samepkgs = filter(lambda q: p.is_same_version(q) and p.repo == q.repo, pkgs)
p.allarches = '/'.join(sorted([q.arch.name for q in samepkgs]))
for q in samepkgs:
if p != q: pkgs.remove(q)