mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-12 23:51:08 +00:00
Docstring
This commit is contained in:
parent
e04d4df889
commit
1d1f86cb9c
@ -383,6 +383,10 @@ def copy(src_pkg, release, simulate=False, force=False):
|
|||||||
'processed.')
|
'processed.')
|
||||||
|
|
||||||
def is_blacklisted(query):
|
def is_blacklisted(query):
|
||||||
|
""""Determine if package "query" is in the sync blacklist
|
||||||
|
Returns True or a string of all relevant comments if blacklisted,
|
||||||
|
False if not
|
||||||
|
"""
|
||||||
url = 'http://people.canonical.com/~ubuntu-archive/sync-blacklist.txt'
|
url = 'http://people.canonical.com/~ubuntu-archive/sync-blacklist.txt'
|
||||||
with codecs.EncodedFile(urllib.urlopen(url), 'UTF-8') as f:
|
with codecs.EncodedFile(urllib.urlopen(url), 'UTF-8') as f:
|
||||||
applicable_comments = []
|
applicable_comments = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user