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 1d73778255..a5c93f33ff 100644 --- a/meta/classes/insane.bbclass +++ b/meta/classes/insane.bbclass | |||
@@ -647,8 +647,8 @@ def package_qa_check_buildpaths(path, name, d, elf, messages): | |||
647 | return | 647 | return |
648 | 648 | ||
649 | tmpdir = d.getVar('TMPDIR', True) | 649 | tmpdir = d.getVar('TMPDIR', True) |
650 | with open(path) as f: | 650 | with open(path, 'rb') as f: |
651 | file_content = f.read() | 651 | file_content = f.read().decode('utf-8', errors='ignore') |
652 | if tmpdir in file_content: | 652 | if tmpdir in file_content: |
653 | package_qa_add_message(messages, "buildpaths", "File %s in package contained reference to tmpdir" % package_qa_clean_path(path,d)) | 653 | package_qa_add_message(messages, "buildpaths", "File %s in package contained reference to tmpdir" % package_qa_clean_path(path,d)) |
654 | 654 | ||