]> code.ossystems Code Review - openembedded-core.git/commit
update-alternatives.bbclass: Stabilize iteration order
authorClemens Lang <clemens.lang@bmw-carit.de>
Thu, 3 Jan 2019 15:55:29 +0000 (16:55 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 7 Jan 2019 10:54:01 +0000 (10:54 +0000)
commit326220267ffc43ec1f507ad0cc47ac59caafd5b7
tree8f6c6a63063874a2a82cccf282a5b1932eeb11e5
parent11278e3b2c75be80645b9841763a97dbb35daadc
update-alternatives.bbclass: Stabilize iteration order

The use of a dictionary for link_rename causes problems for higher-order
alternatives, i.e. when an alternative link points to another
alternative link, since these links must be processed in the order in
which they were originally added for symlink correction to work.

Switch from a dict to a list of tuples to ensure processing happens in
the original order.

Signed-off-by: Clemens Lang <clemens.lang@bmw-carit.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/update-alternatives.bbclass