From 0a6c760b35e20326d51185bd53886686b5e2ec93 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Fri, 26 Feb 2010 19:37:15 -0600 Subject: Only group packages if they are in the same repo Fixes FS#18436. Signed-off-by: Dan McGee --- public/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3-54-g00ecf