summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-02-27 02:37:15 +0100
committerDan McGee <dan@archlinux.org>2010-02-27 02:37:15 +0100
commit0a6c760b35e20326d51185bd53886686b5e2ec93 (patch)
treeef02ac718534538484007e5aea76567cd551a732 /public
parent548ed9dc75ea7c05f7be355a7efd1398d4cfe422 (diff)
downloadarchweb-0a6c760b35e20326d51185bd53886686b5e2ec93.tar.gz
archweb-0a6c760b35e20326d51185bd53886686b5e2ec93.tar.xz
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 a7e3732..f4418d1 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)