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>
This commit is contained in:
Dan McGee 2011-02-18 23:53:01 -06:00
parent 3fb20c942d
commit 330048eab6

View File

@ -264,7 +264,7 @@ def split_packages(self):
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):