summaryrefslogtreecommitdiffstats
path: root/meta
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:06:51 +0100
commite1b5647d2c84579b65f54aa7ca07a41b1dd9470d (patch)
treed6cfb172ee03aef6c2752af677e72246f16b6e53 /meta
parentfeeffdb5b60bec099c139b6a36b7788ecf7212bf (diff)
downloadpoky-e1b5647d2c84579b65f54aa7ca07a41b1dd9470d.tar.gz
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. (From OE-Core rev: 4f47b3a4726dd47e8a6db228fcaf25d1890e3e52) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-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):
578 if (not beginline) and (not endline): 578 if (not beginline) and (not endline):
579 md5chksum = bb.utils.md5_file(srclicfile) 579 md5chksum = bb.utils.md5_file(srclicfile)
580 else: 580 else:
581 fi = open(srclicfile, 'r') 581 fi = open(srclicfile, 'rb')
582 fo = tempfile.NamedTemporaryFile(mode='wb', prefix='poky.', suffix='.tmp', delete=False) 582 fo = tempfile.NamedTemporaryFile(mode='wb', prefix='poky.', suffix='.tmp', delete=False)
583 tmplicfile = fo.name; 583 tmplicfile = fo.name;
584 lineno = 0 584 lineno = 0