summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/models.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/models.py b/main/models.py
index 95e3c42b..202e7fa6 100644
--- a/main/models.py
+++ b/main/models.py
@@ -291,6 +291,10 @@ class Package(models.Model):
Returns a list of packages with conflicts against this package.
"""
pkgs = Package.objects.filter(conflicts__name=self.pkgname)
+ if not self.arch.agnostic:
+ # make sure we match architectures if possible
+ pkgs = pkgs.filter(arch__in=self.applicable_arches())
+
alpm = AlpmAPI()
if not alpm.available:
return pkgs