Values in the form "arch-flavour" are incorrectly processed in the logic
to determine if the note needs to be updated, causing a bunch of notes
to be incorrectly replaced with 'TODO: update not'.
Fix this by searching the values with the proper arch and flavour.
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
}
# Import configs from the Kconfig object into Annotations
+ flavour_arg = flavour
if flavour is not None:
flavour = arch + f"-{flavour}"
else:
if "policy" in self.config[conf]:
# Add a TODO if a config with a note is changing and print
# a warning
- old_val = self.search_config(config=conf, arch=arch, flavour=flavour)
+ old_val = self.search_config(config=conf, arch=arch, flavour=flavour_arg)
if old_val:
old_val = old_val[conf]
if val != old_val and "note" in self.config[conf]: