diff options
Diffstat (limited to 'meta')
-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 fa15460842..eb2d96711e 100644 --- a/meta/classes/insane.bbclass +++ b/meta/classes/insane.bbclass | |||
@@ -534,9 +534,9 @@ def package_qa_check_buildpaths(path, name, d, elf, messages): | |||
534 | if path.find(name + "/CONTROL/") != -1 or path.find(name + "/DEBIAN/") != -1: | 534 | if path.find(name + "/CONTROL/") != -1 or path.find(name + "/DEBIAN/") != -1: |
535 | return | 535 | return |
536 | 536 | ||
537 | tmpdir = d.getVar('TMPDIR') | 537 | tmpdir = bytes(d.getVar('TMPDIR'), encoding="utf-8") |
538 | with open(path, 'rb') as f: | 538 | with open(path, 'rb') as f: |
539 | file_content = f.read().decode('utf-8', errors='ignore') | 539 | file_content = f.read() |
540 | if tmpdir in file_content: | 540 | if tmpdir in file_content: |
541 | package_qa_add_message(messages, "buildpaths", "File %s in package contained reference to tmpdir" % package_qa_clean_path(path,d)) | 541 | package_qa_add_message(messages, "buildpaths", "File %s in package contained reference to tmpdir" % package_qa_clean_path(path,d)) |
542 | 542 | ||