syncpackage: Looks like we can't expect exactly one DSD record for every

source package (LP: #846890)
This commit is contained in:
Stefano Rivera 2011-09-12 11:00:23 +02:00
parent 6fdef19b2c
commit 268fea2a1c
2 changed files with 11 additions and 5 deletions

5
debian/changelog vendored
View File

@ -1,9 +1,14 @@
ubuntu-dev-tools (0.132) UNRELEASED; urgency=low
[ Benjamin Drung ]
* sponsor-patch:
- Refactor code.
- Support sync requests and make ack-sync obsolete (LP: #764763).
[ Stefano Rivera ]
* syncpackage: Looks like we can't expect exactly one DSD record for every
source package (LP: #846890)
-- Benjamin Drung <bdrung@debian.org> Sat, 10 Sep 2011 19:58:38 +0200
ubuntu-dev-tools (0.131) unstable; urgency=low

View File

@ -414,11 +414,12 @@ def is_blacklisted(query):
comments = [c.body_text + u' -- ' + c.comment_author.name
for c in lp_comments]
diff = series.getDifferencesTo(source_package_name_filter=query)[0]
if diff.status == 'Blacklisted current version':
blacklisted = 'CURRENT'
if diff.status == 'Blacklisted always':
blacklisted = 'ALWAYS'
for diff in series.getDifferencesTo(source_package_name_filter=query):
if (diff.status == 'Blacklisted current version'
and blacklisted != 'ALWAYS'):
blacklisted = 'CURRENT'
if diff.status == 'Blacklisted always':
blacklisted = 'ALWAYS'
# Old blacklist:
url = 'http://people.canonical.com/~ubuntu-archive/sync-blacklist.txt'