mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-02-15 16:28:20 +00:00
Skip bug-based processing if BugsV is missing.
This commit is contained in:
parent
a9f50bc26b
commit
cacf326907
20
britney.py
20
britney.py
@ -635,14 +635,18 @@ class Britney(object):
|
|||||||
bugs = {}
|
bugs = {}
|
||||||
filename = os.path.join(basedir, "BugsV")
|
filename = os.path.join(basedir, "BugsV")
|
||||||
self.__log("Loading RC bugs data from %s" % filename)
|
self.__log("Loading RC bugs data from %s" % filename)
|
||||||
for line in open(filename):
|
try:
|
||||||
l = line.split()
|
for line in open(filename):
|
||||||
if len(l) != 2:
|
l = line.split()
|
||||||
self.__log("Malformed line found in line %s" % (line), type='W')
|
if len(l) != 2:
|
||||||
continue
|
self.__log("Malformed line found in line %s" % (line),
|
||||||
pkg = l[0]
|
type='W')
|
||||||
bugs.setdefault(pkg, [])
|
continue
|
||||||
bugs[pkg] += l[1].split(",")
|
pkg = l[0]
|
||||||
|
bugs.setdefault(pkg, [])
|
||||||
|
bugs[pkg] += l[1].split(",")
|
||||||
|
except IOError:
|
||||||
|
self.__log("%s missing; skipping bug-based processing" % filename)
|
||||||
return bugs
|
return bugs
|
||||||
|
|
||||||
def write_bugs(self, basedir, bugs):
|
def write_bugs(self, basedir, bugs):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user