request-backport: Avoid duplicate Reverse-Build-Deps when sources build

binaries of the same name.
This commit is contained in:
Stefano Rivera 2012-07-18 12:45:47 +02:00
parent 73acf77646
commit d3971342d8
2 changed files with 8 additions and 1 deletions

4
debian/changelog vendored
View File

@ -10,8 +10,10 @@ ubuntu-dev-tools (0.144) UNRELEASED; urgency=low
configured a custom builder that doesn't do source builds (LP: #1019817)
* seeded-in-ubuntu Inform the user when we couldn't determine binary
packages built by a source package, as it most recently FTBFS.
* request-backport: Avoid duplicate Reverse-Build-Deps when sources build
binaries of the same name.
-- Stefano Rivera <stefanor@ubuntu.com> Mon, 02 Jul 2012 19:26:32 +0200
-- Stefano Rivera <stefanor@ubuntu.com> Wed, 18 Jul 2012 12:45:05 +0200
ubuntu-dev-tools (0.143) unstable; urgency=low

View File

@ -115,8 +115,13 @@ def find_rdepends(releases, published_binaries):
continue
for relationship, rdeps in raw_rdeps.iteritems():
for rdep in rdeps:
# Ignore circular deps:
if rdep['Package'] in published_binaries:
continue
# arch==any queries return Reverse-Build-Deps:
if (arch == 'any' and rdep.get('Architectures', [])
== ['source']):
continue
intermediate[binpkg][rdep['Package']] \
.append((release, relationship))