From 2ccedba2b55994fb2ef4dc17c23592bd06aed1b5 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Tue, 22 Mar 2011 21:46:37 -0500 Subject: Fix potential logic bug in requiredby filtering Signed-off-by: Dan McGee --- main/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main') diff --git a/main/models.py b/main/models.py index a6eec9ca..4370fa24 100644 --- a/main/models.py +++ b/main/models.py @@ -193,7 +193,7 @@ def get_requiredby(self): # find another package by this name in the opposite testing setup if not Package.objects.filter(pkgname=self.pkgname, - arch=self.arch).exclude(id=self.id, + arch=self.arch).exclude(id=self.id).exclude( repo__testing=self.repo.testing).exists(): # there isn't one? short circuit, all required by entries are fine return requiredby -- cgit v1.2.3-54-g00ecf