From b711ef84a00d2df5d6869ec15c9205374654b6b7 Mon Sep 17 00:00:00 2001 From: "Adam D. Barratt" Date: Tue, 23 Feb 2010 21:24:52 +0000 Subject: [PATCH] Support bugs filed against src:foo Signed-off-by: Adam D. Barratt 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. --- britney.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/britney.py b/britney.py index f264365..c07788f 100755 --- a/britney.py +++ b/britney.py @@ -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):