summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-03-04 04:07:26 +0100
committerDan McGee <dan@archlinux.org>2010-03-06 22:37:02 +0100
commitd4155f7d0fcec64f45f713e5bfdd33db990023b0 (patch)
tree1cd1248a8ad7ee2425eb6b806b41880558bc6cbd /main
parent96b4c52f6d536e5fc21389b65528f2b116aa74ca (diff)
downloadarchweb-d4155f7d0fcec64f45f713e5bfdd33db990023b0.tar.gz
archweb-d4155f7d0fcec64f45f713e5bfdd33db990023b0.tar.xz
Use repo.testing flag instead of test-based checks
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'main')
-rw-r--r--main/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/models.py b/main/models.py
index abbe050..a022b8e 100644
--- a/main/models.py
+++ b/main/models.py
@@ -249,7 +249,7 @@ class Package(models.Model):
elif len(pkgs) == 1:
deps.append({'dep': dep, 'pkg': pkgs[0]})
else:
- tpkgs = pkgs.filter(repo__name='Testing')
+ tpkgs = pkgs.filter(repo__testing=True)
if len(tpkgs) == 1:
deps.append({'dep': dep, 'pkg': tpkgs[0]})
else: