summaryrefslogtreecommitdiffstats
path: root/scripts/lib/devtool/standard.py
diff options
context:
space:
mode:
authorDan McGregor <dan.mcgregor@usask.ca>2024-09-09 09:41:51 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-09-12 16:17:20 +0100
commitde29354e8410c07905a8d129d260cd52536aaa30 (patch)
tree401eff7efe36e32af2348a26e32280464b72577f /scripts/lib/devtool/standard.py
parentd016d18a9f14871c444a13305f4040f28000a21f (diff)
downloadpoky-de29354e8410c07905a8d129d260cd52536aaa30.tar.gz
bitbake: prserv: increment 9 to 10 correctly
Previously, incrementing "0.9" would result in "0.1.0", which generally gets recognised as a lower version number. Even more surprising, incrementing "0.99" returned "0.1.0.0". This is due to the behaviour of the list function on a string object; it adds each character as an element in a new list, causing the new string '10' to become the list [ '1', '0' ]. Instead of converting a string to a list, add the string to a new list, and concatenate it with the existing list slice. And provide test cases for "0.9" -> "0.10" and related edge cases. (Bitbake rev: 96ddeefa88ff4c37e9ea096726a7cdca5b5b4572) Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/devtool/standard.py')
0 files changed, 0 insertions, 0 deletions