diff options
author | Dan McGee <dan@archlinux.org> | 2011-02-18 23:53:01 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-02-19 00:32:26 -0600 |
commit | 330048eab6cf9bacf2d7bb436a101a3b7469aca7 (patch) | |
tree | 97bdf25c3168848c63ba7b7b5c2f5101919fa8a8 /main | |
parent | 3fb20c942da5afece6f8717a9c3bf878e18b508a (diff) |
Unify calls to applicable_arches()
Invoke the function everywhere it is used rather than passing a
callable.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'main')
-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 73a7620d..b7ab8057 100644 --- a/main/models.py +++ b/main/models.py @@ -264,7 +264,7 @@ class Package(models.Model): repo.testing flag. For any non-split packages, the return value will be an empty list. """ - return Package.objects.filter(arch__in=self.applicable_arches, + return Package.objects.filter(arch__in=self.applicable_arches(), repo__testing=self.repo.testing, pkgbase=self.pkgbase).exclude(id=self.id) def get_svn_link(self, svnpath): |