]> git.wh0rd.org - patches.git/blame - catalyst-export-bools.patch
initial import
[patches.git] / catalyst-export-bools.patch
CommitLineData
5e993f12 1Index: modules/generic_stage_target.py
2===================================================================
3--- modules/generic_stage_target.py (revision 1224)
4+++ modules/generic_stage_target.py (working copy)
5@@ -1056,8 +1066,7 @@
6 # fixed. We need this to use the os.system() call since we can't
7 # specify our own environ:
8 for x in self.settings.keys():
9- # "/" is replaced with "_", "-" is replaced with "_", and "." is
10- # replaced with "_"
11+ # sanitize var names by doing "s|/-.|_|g"
12 varname="clst_"+string.replace(x,"/","_")
13 varname=string.replace(varname,"-","_")
14 varname=string.replace(varname,".","_")
15@@ -1068,6 +1077,11 @@
16 elif type(self.settings[x])==types.ListType:
17 #os.environ[varname]=string.join(self.settings[x])
18 self.env[varname]=string.join(self.settings[x])
19+ elif type(self.settings[x])==types.BooleanType:
20+ if self.settings[x]:
21+ self.env[varname]="true"
22+ else:
23+ self.env[varname]="false"
24 if self.settings.has_key("makeopts"):
25 self.env["MAKEOPTS"]=self.settings["makeopts"]
26