mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-16 01:21:07 +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:
|
# LP:
|
||||||
# TODO: Refactor when LP: #833080 is fixed
|
# TODO: Refactor when LP: #833080 is fixed
|
||||||
series = Launchpad.distributions['ubuntu'].current_series
|
series = Launchpad.distributions['ubuntu'].current_series
|
||||||
diffs = series.getDifferencesTo(source_package_name_filter=query,
|
diffs = (list(series.getDifferencesTo(source_package_name_filter=query,
|
||||||
status='Needs attention')
|
status='Blacklisted current version'))
|
||||||
if len(diffs) == 0:
|
+ list(series.getDifferencesTo(source_package_name_filter=query,
|
||||||
|
status='Blacklisted always')))
|
||||||
|
if len(diffs) > 0:
|
||||||
comments = series.getDifferenceComments(source_package_name=query)
|
comments = series.getDifferenceComments(source_package_name=query)
|
||||||
comment = '; '.join(c.body_text for c in comments)
|
comment = '; '.join(c.body_text for c in comments)
|
||||||
if comment:
|
if comment:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user