From d3971342d8e60706b2b0243defa28eb1c473f246 Mon Sep 17 00:00:00 2001 From: Stefano Rivera Date: Wed, 18 Jul 2012 12:45:47 +0200 Subject: [PATCH] request-backport: Avoid duplicate Reverse-Build-Deps when sources build binaries of the same name. --- debian/changelog | 4 +++- requestbackport | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 07fe088..b93035e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Mon, 02 Jul 2012 19:26:32 +0200 + -- Stefano Rivera Wed, 18 Jul 2012 12:45:05 +0200 ubuntu-dev-tools (0.143) unstable; urgency=low diff --git a/requestbackport b/requestbackport index 7c6a9db..bff179b 100755 --- a/requestbackport +++ b/requestbackport @@ -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))