mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-12 15:41:09 +00:00
Check the +localpackagediffs blacklist too
This commit is contained in:
parent
1d1f86cb9c
commit
1277344ec8
12
syncpackage
12
syncpackage
@ -387,6 +387,18 @@ def is_blacklisted(query):
|
||||
Returns True or a string of all relevant comments if blacklisted,
|
||||
False if not
|
||||
"""
|
||||
# LP:
|
||||
series = Launchpad.distributions['ubuntu'].current_series
|
||||
diffs = series.getDifferencesTo(source_package_name_filter=query,
|
||||
status='Needs attention')
|
||||
if len(diffs) == 0:
|
||||
comments = getDifferenceComments(source_package_name=query)
|
||||
comment = '; '.join(c.body_text for c in comments)
|
||||
if comment:
|
||||
return comment
|
||||
return True
|
||||
|
||||
# Old blacklist:
|
||||
url = 'http://people.canonical.com/~ubuntu-archive/sync-blacklist.txt'
|
||||
with codecs.EncodedFile(urllib.urlopen(url), 'UTF-8') as f:
|
||||
applicable_comments = []
|
||||
|
Loading…
x
Reference in New Issue
Block a user