]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
license.bbclass: Bound beginline and endline in copy_license_files()
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Fri, 3 Jun 2022 00:06:49 +0000 (02:06 +0200)
committerSteve Sakoman <steve@sakoman.com>
Wed, 15 Jun 2022 16:40:10 +0000 (06:40 -1000)
commit27cd074d747c5ef4b475c8a62a8ede2bbe58f996
tree294974c336b84cd120a7e5e60f95433a35642a60
parenta1b73bc6ba90fb079e514e4eeda8e231a950b9f4
license.bbclass: Bound beginline and endline in copy_license_files()

Ensure that begin_idx (i.e., beginline - 1) and end_idx (i.e.,
endline) are positive numbers in copy_license_files(). This makes sure
the same lines are copied as populate_lic_qa_checksum() uses when it
calculates the checksum. Before, beginline=0 would typically lead to
that no lines were copied at all.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit ab3cc3651d08d226675c461da760cda0bb6c0ce0)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/license.bbclass