mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 17:19:20 +00:00
spdx.bbclass: Fix undefined variable error
The path variable is used in an error message a few lines later, but was never defined. (From OE-Core rev: 863ff90b788f66241860e27e1fd3a791b00984cc) Signed-off-by: Olof Johansson <olofjn@axis.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
a60a3c11f4
commit
ae7d14ab44
@@ -289,7 +289,8 @@ def create_spdx_doc(file_info, scanned_files):
|
||||
def get_ver_code(dirname):
|
||||
chksums = []
|
||||
for f_dir, f in list_files(dirname):
|
||||
hash = hash_file(os.path.join(dirname, f_dir, f))
|
||||
path = os.path.join(dirname, f_dir, f)
|
||||
hash = hash_file(path)
|
||||
if not hash is None:
|
||||
chksums.append(hash)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user