X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Futils.py;h=1756f58fa2d27132a3675a95716ab4404cf9a898;hb=1655d67a017e5b572ca4669e658f8f9a6a7cbcc8;hp=27b068e1c49d15ec9426da65f13ac49054762f2b;hpb=5537d969662dd89432dbede1e985d17a7ac632ef;p=dak.git diff --git a/daklib/utils.py b/daklib/utils.py index 27b068e1..1756f58f 100755 --- a/daklib/utils.py +++ b/daklib/utils.py @@ -1539,7 +1539,7 @@ if which_conf_file() != default_config: ################################################################################ -def parse_wnpp_bug_file(file = "/home/tolimar/wnpp-bugs"): +def parse_wnpp_bug_file(file = "/srv/ftp-master.debian.org/scripts/masterfiles/wnpp_rm"): """ Parses the wnpp bug list available at http://qa.debian.org/data/bts/wnpp_rm Well, actually it parsed a local copy, but let's document the source @@ -1548,7 +1548,14 @@ def parse_wnpp_bug_file(file = "/home/tolimar/wnpp-bugs"): returns a dict associating source package name with a list of open wnpp bugs (Yes, there might be more than one) """ - lines = open(file).readlines() + + line = [] + try: + f = open(file) + lines = f.readlines() + except IOError, e: + print "Warning: Couldn't open %s; don't know about WNPP bugs, so won't close any." % file + lines = [] wnpp = {} for line in lines: @@ -1564,4 +1571,3 @@ def parse_wnpp_bug_file(file = "/home/tolimar/wnpp-bugs"): bugs.append(bug_no) wnpp[source] = bugs return wnpp -