mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-02-13 15:37:02 +00:00
Support bugs filed against src:foo
Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk> Currently a bug against src:foo is treated as if it were filed against foo. As both may exist in the input list, we accumulate bugs for each package rather than assuming package names are unique.
This commit is contained in:
parent
9fc14153a3
commit
b745082c46
@ -566,7 +566,10 @@ class Britney:
|
||||
if len(l) != 2:
|
||||
print "WARNING: Malformed line found in %s: %s" % (file, line)
|
||||
continue
|
||||
bugs[l[0]] = l[1].split(",")
|
||||
pkg = l[0]
|
||||
if pkg.startswith('src:'): pkg = pkg[4:]
|
||||
bugs.setdefault(pkg, [])
|
||||
bugs[pkg] += l[1].split(",")
|
||||
return bugs
|
||||
|
||||
def write_bugs(self, basedir, bugs):
|
||||
|
Loading…
x
Reference in New Issue
Block a user