diff options
author | Dan McGee <dan@archlinux.org> | 2011-03-23 03:46:37 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-03-23 03:46:37 +0100 |
commit | 2ccedba2b55994fb2ef4dc17c23592bd06aed1b5 (patch) | |
tree | 2ff66c1078fbc66676c4e40e6c1222215f0d4067 | |
parent | 59b176ed025548118f750e0d506f8a1d20cc4635 (diff) | |
download | archweb-2ccedba2b55994fb2ef4dc17c23592bd06aed1b5.tar.gz archweb-2ccedba2b55994fb2ef4dc17c23592bd06aed1b5.tar.xz |
Fix potential logic bug in requiredby filtering
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r-- | main/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/models.py b/main/models.py index a6eec9c..4370fa2 100644 --- a/main/models.py +++ b/main/models.py @@ -193,7 +193,7 @@ class Package(models.Model): # 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 |