do not change current env

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-10-13 11:09:57 +02:00
parent c305735ed5
commit 143939a6f7

View file

@ -85,13 +85,9 @@ class ConfigInstall(object):
os.mkdir(self.context.out_path) os.mkdir(self.context.out_path)
os.mkdir(self.context.bin_path) os.mkdir(self.context.bin_path)
# FIXME: remove this function, only expose ENV # os.environ['__target_host'] = self.context.target_host
# explicitly! # if self.context.debug:
def __init_env(self): # os.environ['__debug'] = "yes"
"""Environment usable for other stuff"""
os.environ['__target_host'] = self.context.target_host
if self.context.debug:
os.environ['__debug'] = "yes"
def cleanup(self): def cleanup(self):
self.log.debug("Saving " + self.context.out_path + " to " + self.context.cache_path) self.log.debug("Saving " + self.context.out_path + " to " + self.context.cache_path)