cranky: promote-snap -- add support for promoting by tracker
Add support for promotion by tracker number. As things stand
you have no way to perform the promotions wanted for a stream#1 tracker
and not a stream#2 tracker. Add support for promoting by tracker to
simplify selection.
Signed-off-by: Andy Whitcroft <email address hidden>
Acked-by: Stefan Bader <email address hidden>
Signed-off-by: Andy Whitcroft <email address hidden>
annotations: update: properly update note for arch-flavour configs
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.
== Additional notes ==
Inside the affected function we are replacing flavour with "arch-flavour" to easily access the items in the dictionary `self.config[conf]['policy']`.
But we also used the replaced flavour variable to search for the old value (and trigger the "update note" condition), that ended up being replaced another time, producing "arch-flavour-flavour", that is incorrect.
This is why all the notes for the values in the form "arch-flavour" were incorrectly replaced with the "TODO", because it was always failing to find the previous value.
Signed-off-by: Andrea Righi <email address hidden>
Acked-by: Stefan Bader <email address hidden>
Signed-off-by: Andrea Righi <email address hidden>