diff options
author | Emilio Pozuelo Monfort <pochu@debian.org> | 2023-03-20 14:47:04 +0100 |
---|---|---|
committer | Emilio Pozuelo Monfort <pochu@debian.org> | 2023-03-27 10:25:24 +0200 |
commit | 204d1de1c5900e60984b748a978040a310354873 (patch) | |
tree | 237dbfcc87c3e8644083f3b292c98d6ab7c30d1c /bin | |
parent | bff5b300b56534e1d4fc66116c32b987c70ff46b (diff) |
update-vuln: mark_not_affected: add a bug variable
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/update-vuln | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/update-vuln b/bin/update-vuln index 3d733841c4..76306b7cfc 100755 --- a/bin/update-vuln +++ b/bin/update-vuln @@ -171,13 +171,14 @@ class ParseUpdates: modified = [] cve = self.cves[0] cve_file = f"{cve}.list" - existing = [line.release for line in self.bugs[cve].annotations if isinstance(line, PackageAnnotation)] + bug = self.bugs[cve] + existing = [line.release for line in bug.annotations if isinstance(line, PackageAnnotation)] if suite not in existing: # line type release package kind version description flags line = PackageAnnotation(0, "package", suite, src, "not-affected", None, description, []) mod_bug = self._add_annotation_to_cve(cve, line) modified.append(mod_bug) - for line in self.bugs[cve].annotations: + for line in bug.annotations: if not isinstance(line, PackageAnnotation): continue # skip notes etc. if line.release != suite: |