From 1277344ec8820a8a2ace4583e50863a98ec17868 Mon Sep 17 00:00:00 2001 From: Stefano Rivera Date: Wed, 24 Aug 2011 19:52:21 +0200 Subject: [PATCH] Check the +localpackagediffs blacklist too --- syncpackage | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/syncpackage b/syncpackage index dafaf81..58b8ba6 100755 --- a/syncpackage +++ b/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 = []