]> rtime.felk.cvut.cz Git - linux-conf-perf.git/commitdiff
Fix empty temporally file for config generation
authorKarel Kočí <cynerd@email.cz>
Mon, 14 Sep 2015 08:28:24 +0000 (10:28 +0200)
committerKarel Kočí <cynerd@email.cz>
Mon, 14 Sep 2015 08:36:49 +0000 (10:36 +0200)
Generated temporally configuration file was read.

scripts/kernel.py

index 0b374c4519abc3327d4b03d432bcdee3513b030b..11dce0f7b00be77861a63a1a47d61eb609c66406 100644 (file)
@@ -12,7 +12,7 @@ import utils
 def config(txtconfig):
        "Apply text configuration to kernel folder"
        infile = tempfile.NamedTemporaryFile()
-       for ln in infile:
+       for ln in txtconfig:
                infile.write(bytes(ln + '\n', sys.getdefaultencoding()))
        wd = os.getcwd()
        os.chdir(sf(conf.linux_sources))