diff options
author | Olof Johansson <olof.johansson@axis.com> | 2018-07-16 17:05:54 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-07-18 10:13:30 +0100 |
commit | 863ff90b788f66241860e27e1fd3a791b00984cc (patch) | |
tree | 2ff1fbb6922214384401ae58796f232ae993c732 | |
parent | 8538aabf62d866f36764b4b136ee8575308df690 (diff) | |
download | openembedded-core-863ff90b788f66241860e27e1fd3a791b00984cc.tar.gz openembedded-core-863ff90b788f66241860e27e1fd3a791b00984cc.tar.bz2 openembedded-core-863ff90b788f66241860e27e1fd3a791b00984cc.zip |
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 <olofjn@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r-- | meta/classes/spdx.bbclass | 3 |
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): 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: |