From 9ca8696a489b5c16a2239213919c9e8b7f8c55d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 19 Aug 2015 21:44:16 +0200 Subject: Fix wrong input type to compare_text in register_conf --- scripts/kernel.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts/kernel.py') diff --git a/scripts/kernel.py b/scripts/kernel.py index 8bc147d..0b374c4 100644 --- a/scripts/kernel.py +++ b/scripts/kernel.py @@ -12,7 +12,8 @@ import utils def config(txtconfig): "Apply text configuration to kernel folder" infile = tempfile.NamedTemporaryFile() - infile.write(bytes(txtconfig, sys.getdefaultencoding())) + for ln in infile: + infile.write(bytes(ln + '\n', sys.getdefaultencoding())) wd = os.getcwd() os.chdir(sf(conf.linux_sources)) try: -- cgit v1.2.3