mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-14 00:21:08 +00:00
There's now a 4th state for getDifferencesTo, let's explicitly query both the ones we are interested in, rather than an inverted search on the 3rd state.
This commit is contained in:
parent
a3378ee9fc
commit
54cb83cd4d
@ -410,9 +410,11 @@ def is_blacklisted(query):
|
||||
# LP:
|
||||
# TODO: Refactor when LP: #833080 is fixed
|
||||
series = Launchpad.distributions['ubuntu'].current_series
|
||||
diffs = series.getDifferencesTo(source_package_name_filter=query,
|
||||
status='Needs attention')
|
||||
if len(diffs) == 0:
|
||||
diffs = (list(series.getDifferencesTo(source_package_name_filter=query,
|
||||
status='Blacklisted current version'))
|
||||
+ list(series.getDifferencesTo(source_package_name_filter=query,
|
||||
status='Blacklisted always')))
|
||||
if len(diffs) > 0:
|
||||
comments = series.getDifferenceComments(source_package_name=query)
|
||||
comment = '; '.join(c.body_text for c in comments)
|
||||
if comment:
|
||||
|
Loading…
x
Reference in New Issue
Block a user