do not change current env
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								c305735ed5
							
						
					
				
			
			
				commit
				
					
						143939a6f7
					
				
			
		
					 1 changed files with 3 additions and 7 deletions
				
			
		| 
						 | 
					@ -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)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue