diff options
author | Jaewon Lee <jaewon.lee@xilinx.com> | 2020-02-06 13:45:11 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-02-08 13:20:02 +0000 |
commit | ed4bdd0f9149ba24fac375fd3af8bb2a06423105 (patch) | |
tree | 8019c285a4a50cb765e3f922f8fd741c5fb8f22b /meta/recipes-kernel/cryptodev | |
parent | 38a754214a84ddfd27e537babf2bf5d992371b67 (diff) | |
download | poky-ed4bdd0f9149ba24fac375fd3af8bb2a06423105.tar.gz |
sstate.bbclass: fix issue while handling long sstate filenames
When moving to python3, divison using '/' now returns float instead of
an integer. In upstream commit b8025e972081b70960ffcbcbe43a7118041556a1
sstate filenames longer than the limit are changed to just include
necessary info + 3 fields just for information. The space left over
after the necessary info is divided into 3 for each of the fields.
Using '//' instead to do the division to solve the following error
message:
avail = (254 - len(hash + "_" + taskname + extension) -
len(components[0]) - len(components[1]) - len(components[5]) -
len(components[6]) - 7) / 3
> components[2] = components[2][:avail]
components[3] = components[3][:avail]
TypeError: slice indices must be integers or None or have an __index__
method
(From OE-Core rev: 2acfee61a062c6520a413b2a797544d968bb0c76)
Signed-off-by: Jaewon Lee <jaewon.lee@xilinx.com>
Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/cryptodev')
0 files changed, 0 insertions, 0 deletions