summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-07 13:56:03 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-09 14:04:19 +0100
commit4f47b3a4726dd47e8a6db228fcaf25d1890e3e52 (patch)
tree54d4fbdd1af1a82959e2e91d1f4a9b7f91d79359 /meta/classes
parenta37ae30b9766df346ca57755530024a0b7d5f86b (diff)
downloadopenembedded-core-4f47b3a4726dd47e8a6db228fcaf25d1890e3e52.tar.gz
openembedded-core-4f47b3a4726dd47e8a6db228fcaf25d1890e3e52.tar.bz2
openembedded-core-4f47b3a4726dd47e8a6db228fcaf25d1890e3e52.zip
insane: Open file in binary mode
We open the file we're writing to in binary mode so open the input stream with the same mode so things match. This avoids errors with python3. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/insane.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index 41007f8e18..809aa457a1 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -578,7 +578,7 @@ def package_qa_check_license(workdir, d):
if (not beginline) and (not endline):
md5chksum = bb.utils.md5_file(srclicfile)
else:
- fi = open(srclicfile, 'r')
+ fi = open(srclicfile, 'rb')
fo = tempfile.NamedTemporaryFile(mode='wb', prefix='poky.', suffix='.tmp', delete=False)
tmplicfile = fo.name;
lineno = 0