summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <pochu@debian.org>2023-03-20 11:55:50 +0100
committerEmilio Pozuelo Monfort <pochu@debian.org>2023-03-27 10:25:23 +0200
commit8d306c41ca1a7babfc0fb4d11a9b11744b3e1937 (patch)
tree139ade8bb800e28d2b0ee9275565de84dd01c5d2 /lib
parenteb20bb951812091e37f395be3a4a3e9f95a27e03 (diff)
sectracker.analyzers: check the right struct fields
Diffstat (limited to 'lib')
-rw-r--r--lib/python/sectracker/analyzers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/python/sectracker/analyzers.py b/lib/python/sectracker/analyzers.py
index 386af47974..7df09c4994 100644
--- a/lib/python/sectracker/analyzers.py
+++ b/lib/python/sectracker/analyzers.py
@@ -35,9 +35,9 @@ def mergelists(listfiles, diag):
name = header.name
if name in result:
diag.error("duplicate bug %r" % name,
- file=header.file, line=header.header.line)
+ file=bug.file, line=header.line)
diag.error("location of previous bug",
- file=result[name].file, line=result[name].line)
+ file=result[name].file, line=result[name].header.line)
continue
result[name] = bug
return result

© 2014-2024 Faster IT GmbH | imprint | privacy policy