Look up the reverse dependencies in the target releases, for each binary package build by this source package in the source release

This commit is contained in:
Stefano Rivera 2011-11-12 01:54:04 +02:00
parent 222ab46cff
commit 840421c7c6

View File

@ -124,9 +124,9 @@ def find_rdepends(package, releases):
for arch in ('any', 'source'): for arch in ('any', 'source'):
for release in releases: for release in releases:
for binpkg in published_binaries:
try: try:
raw_rdeps = query_rdepends('src:' + package.getPackageName(), raw_rdeps = query_rdepends(binpkg, release, arch)
release, arch)
except RDependsException: except RDependsException:
# Not published? TODO: Check # Not published? TODO: Check
continue continue
@ -134,7 +134,7 @@ def find_rdepends(package, releases):
for rdep in rdeps: for rdep in rdeps:
if rdep['Package'] in published_binaries: if rdep['Package'] in published_binaries:
continue continue
intermediate[rdep['Dependency']][rdep['Package']] \ intermediate[binpkg][rdep['Package']] \
.append((release, relationship)) .append((release, relationship))
output = [] output = []