Verified Commit 30add2e1 authored by Baptiste Beauplat's avatar Baptiste Beauplat
Browse files

Set lintian override_comments to an empty list instead of doing a .pop()

This a more robust way of handling comments for mask as this work with
no comment or multi comments (not that it should happen but it's cleaner
anyway)
parent 7c1bf5fe
Pipeline #413805 failed with stage
in 9 minutes and 22 seconds
...@@ -104,7 +104,7 @@ class PluginLintian(BasePlugin): ...@@ -104,7 +104,7 @@ class PluginLintian(BasePlugin):
# Skip mask severity # Skip mask severity
if tag.startswith("M: "): if tag.startswith("M: "):
# Drop associated N: # Drop associated N:
override_comments.pop() override_comments = []
continue continue
severity, package, rest = tag.split(': ', 2) severity, package, rest = tag.split(': ', 2)
......
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