Commit 04e1258e authored by Nicolas Dandrimont's avatar Nicolas Dandrimont 🤔
Browse files

Take into account the source package instead of the binary name in the closedbugs plugin.

parent a488faff
...@@ -62,9 +62,6 @@ class ClosedBugsPlugin(BasePlugin): ...@@ -62,9 +62,6 @@ class ClosedBugsPlugin(BasePlugin):
bugs = [int(x) for x in self.changes['Closes'].split()] bugs = [int(x) for x in self.changes['Closes'].split()]
binary_packages = self.changes['Description'].split('\n')
binary_packages = [t.strip() for t in binary_packages]
if bugs: if bugs:
log.debug('Creating SOAP proxy to bugs.debian.org') log.debug('Creating SOAP proxy to bugs.debian.org')
try: try:
...@@ -106,7 +103,7 @@ class ClosedBugsPlugin(BasePlugin): ...@@ -106,7 +103,7 @@ class ClosedBugsPlugin(BasePlugin):
name = data["raw"][bug]['package'] name = data["raw"][bug]['package']
if self._package_in_descriptions(name, binary_packages) or name == "wnpp": if data["raw"][bug]['source'] == self.changes["Source"] or name == "wnpp":
data["bugs"][name].append((bug, data["raw"][bug]["subject"], data["raw"][bug]["severity"])) data["bugs"][name].append((bug, data["raw"][bug]["subject"], data["raw"][bug]["severity"]))
else: else:
data["errors"].append('Bug #%s does not belong to this package' % bug) data["errors"].append('Bug #%s does not belong to this package' % bug)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment