summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-03-03 21:07:26 -0600
committerDan McGee <dan@archlinux.org>2010-03-06 15:37:02 -0600
commitd4155f7d0fcec64f45f713e5bfdd33db990023b0 (patch)
tree1cd1248a8ad7ee2425eb6b806b41880558bc6cbd /main
parent96b4c52f6d536e5fc21389b65528f2b116aa74ca (diff)
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 abbe050b..a022b8eb 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: