From: Olof Johansson Date: Mon, 16 Jul 2018 15:05:54 +0000 (+0200) Subject: spdx.bbclass: Fix undefined variable error X-Git-Tag: uninative-2.2~53 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=863ff90b788f66241860e27e1fd3a791b00984cc;p=openembedded-core.git spdx.bbclass: Fix undefined variable error The path variable is used in an error message a few lines later, but was never defined. Signed-off-by: Olof Johansson Signed-off-by: Ross Burton --- diff --git a/meta/classes/spdx.bbclass b/meta/classes/spdx.bbclass index ab2eaa5c0c..9e374d70a6 100644 --- a/meta/classes/spdx.bbclass +++ b/meta/classes/spdx.bbclass @@ -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: