aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-09-14 10:28:24 +0200
committerKarel Kočí <cynerd@email.cz>2015-09-14 10:36:49 +0200
commit0d622d23b8f8ad6d63589900fc65a398ab9ee344 (patch)
treec3019d6f479a1f41747e3cd05f73e059c5a70f09
parente94207efe93141ce2d58436c56ea4271948bf148 (diff)
downloadlinux-conf-perf-0d622d23b8f8ad6d63589900fc65a398ab9ee344.tar.gz
linux-conf-perf-0d622d23b8f8ad6d63589900fc65a398ab9ee344.tar.bz2
linux-conf-perf-0d622d23b8f8ad6d63589900fc65a398ab9ee344.zip
Fix empty temporally file for config generation
Generated temporally configuration file was read.
-rw-r--r--scripts/kernel.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kernel.py b/scripts/kernel.py
index 0b374c4..11dce0f 100644
--- a/scripts/kernel.py
+++ b/scripts/kernel.py
@@ -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))