diff options
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/insane.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass index 713b40eac4..469d5c4cd5 100644 --- a/meta/classes/insane.bbclass +++ b/meta/classes/insane.bbclass | |||
@@ -535,9 +535,9 @@ def package_qa_check_buildpaths(path, name, d, elf, messages): | |||
535 | if path.find(name + "/CONTROL/") != -1 or path.find(name + "/DEBIAN/") != -1: | 535 | if path.find(name + "/CONTROL/") != -1 or path.find(name + "/DEBIAN/") != -1: |
536 | return | 536 | return |
537 | 537 | ||
538 | tmpdir = d.getVar('TMPDIR') | 538 | tmpdir = bytes(d.getVar('TMPDIR'), encoding="utf-8") |
539 | with open(path, 'rb') as f: | 539 | with open(path, 'rb') as f: |
540 | file_content = f.read().decode('utf-8', errors='ignore') | 540 | file_content = f.read() |
541 | if tmpdir in file_content: | 541 | if tmpdir in file_content: |
542 | package_qa_add_message(messages, "buildpaths", "File %s in package contained reference to tmpdir" % package_qa_clean_path(path,d)) | 542 | package_qa_add_message(messages, "buildpaths", "File %s in package contained reference to tmpdir" % package_qa_clean_path(path,d)) |
543 | 543 | ||