summaryrefslogtreecommitdiff
path: root/main/models.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-09-08 14:10:13 -0500
committerDan McGee <dan@archlinux.org>2011-09-08 14:10:13 -0500
commit293e42fc55ca0ee8f67d5bdcb3d32fd0ec93786e (patch)
tree2d9364e0f48645f2b39c6c27827b2f5c6fbfba84 /main/models.py
parentf173a03857e92268412196cd8e7c0f5d27fb6a38 (diff)
List packages in required by list with depend provided by this package
Implements FS#25862. Most noticable on package like util-linux (util-linux-ng) and openjdk6 (java-runtime, java-environment). Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'main/models.py')
-rw-r--r--main/models.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/main/models.py b/main/models.py
index e0681abf..1efca78d 100644
--- a/main/models.py
+++ b/main/models.py
@@ -234,9 +234,11 @@ class Package(models.Model):
list slim by including the corresponding package in the same testing
category as this package if that check makes sense.
"""
+ provides = set(self.provides.values_list('name', flat=True))
+ provides.add(self.pkgname)
requiredby = PackageDepend.objects.select_related('pkg',
'pkg__arch', 'pkg__repo').filter(
- depname=self.pkgname).order_by(
+ depname__in=provides).order_by(
'pkg__pkgname', 'pkg__arch__name', 'pkg__repo__name')
if not self.arch.agnostic:
# make sure we match architectures if possible