summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-04-14 13:45:00 -0500
committerDan McGee <dan@archlinux.org>2013-04-14 13:45:00 -0500
commit4d7d08f93de9e6af9e664a00e090158e738a890c (patch)
tree340ade325691214c0ccb6b75f585190476c07b2e /packages
parentf357a39a49a8edc713d512976a0be2a2a8ac5c4f (diff)
Fix missing attribute error in replacment find code
Whoops. Just introduced this when ensuring we look for both the packgae in other repositories as well as any replacments. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages')
-rw-r--r--packages/models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/models.py b/packages/models.py
index 92566a56..f830aade 100644
--- a/packages/models.py
+++ b/packages/models.py
@@ -326,7 +326,8 @@ class Update(models.Model):
replaces__name=self.pkgname)
if not self.arch.agnostic:
# make sure we match architectures if possible
- arches = self.pkg.applicable_arches()
+ arches = set(Arch.objects.filter(agnostic=True))
+ arches.add(self.arch)
pkgs = pkgs.filter(arch__in=arches)
return pkgs