annotations: prevent duplicate include lines
authorAndrea Righi <andrea.righi@canonical.com>
Tue, 28 Mar 2023 10:48:03 +0000 (12:48 +0200)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 28 Mar 2023 10:48:03 +0000 (12:48 +0200)
commit4621f412ef5e6cb4c72aa6cb110ee21d8be760b3
tree4cdd4e2d053f60c5c20deabe2e9d7b0cc7793c47
parent87410a555f526745387c745c237fe5fb6d02bb87
annotations: prevent duplicate include lines

Includes are always parsed recursively, but when we save them (e.g.,
when the annotations file is updated) we should always save only the
top-level includes, without repeating the recursive ones.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
kconfig/annotations.py