[oe-commits] [openembedded-core] 31/41: spdx.bbclass: Fix undefined variable error

git at git.openembedded.org git at git.openembedded.org
Wed Jul 18 09:20:33 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository openembedded-core.

commit 863ff90b788f66241860e27e1fd3a791b00984cc
Author: Olof Johansson <olof.johansson at axis.com>
AuthorDate: Mon Jul 16 17:05:54 2018 +0200

    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 at axis.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/classes/spdx.bbclass | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/classes/spdx.bbclass b/meta/classes/spdx.bbclass
index ab2eaa5..9e374d7 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:

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list