summaryrefslogtreecommitdiffstats
path: root/meta/classes/spdx.bbclass
diff options
context:
space:
mode:
authorOlof Johansson <olof.johansson@axis.com>2018-07-16 17:05:54 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-07-18 10:18:42 +0100
commitae7d14ab44bfb6a96f461932025652f80c067c11 (patch)
tree908381511720eba254c476006f6e4bfd460a63cc /meta/classes/spdx.bbclass
parenta60a3c11f487580f3321339f47408fcf1c36c049 (diff)
downloadpoky-ae7d14ab44bfb6a96f461932025652f80c067c11.tar.gz
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>
Diffstat (limited to 'meta/classes/spdx.bbclass')
-rw-r--r--meta/classes/spdx.bbclass3
1 files changed, 2 insertions, 1 deletions
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):
289def get_ver_code(dirname): 289def get_ver_code(dirname):
290 chksums = [] 290 chksums = []
291 for f_dir, f in list_files(dirname): 291 for f_dir, f in list_files(dirname):
292 hash = hash_file(os.path.join(dirname, f_dir, f)) 292 path = os.path.join(dirname, f_dir, f)
293 hash = hash_file(path)
293 if not hash is None: 294 if not hash is None:
294 chksums.append(hash) 295 chksums.append(hash)
295 else: 296 else: