summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
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