]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.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)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 6 Jun 2022 12:35:29 +0000 (13:35 +0100)
commitab3cc3651d08d226675c461da760cda0bb6c0ce0
tree860a78adc893e0a753900611183b1d3b7677d316
parent3ac45755dffc611fb46f5cd1c07f4876d3094893
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>
meta/classes/license.bbclass