Commit 89fd4b43 authored by Nicolas Dandrimont's avatar Nicolas Dandrimont 🤔
Browse files

Store bug information for all packages, not only the "valid" ones

parent 04e1258e
...@@ -102,10 +102,9 @@ class ClosedBugsPlugin(BasePlugin): ...@@ -102,10 +102,9 @@ class ClosedBugsPlugin(BasePlugin):
severity = max(severity, constants.PLUGIN_SEVERITY_ERROR) severity = max(severity, constants.PLUGIN_SEVERITY_ERROR)
name = data["raw"][bug]['package'] name = data["raw"][bug]['package']
data["bugs"][name].append((bug, data["raw"][bug]["subject"], data["raw"][bug]["severity"]))
if data["raw"][bug]['source'] == self.changes["Source"] or name == "wnpp": if not data["raw"][bug]['source'] == self.changes["Source"] or name == "wnpp":
data["bugs"][name].append((bug, data["raw"][bug]["subject"], data["raw"][bug]["severity"]))
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)
severity = max(severity, constants.PLUGIN_SEVERITY_ERROR) severity = max(severity, constants.PLUGIN_SEVERITY_ERROR)
......
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