# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
# $Id: $
+ 10 Apr 2007; Chris Gianelloni <wolf31o2@gentoo.org>
+ modules/generic_stage_target.py:
+ Added a patch from Mike Frysinger <vapier@gentoo.org> for bug #173740 to
+ cause catalyst to export boolean variables as well as string-based
+ variables.
+
10 Apr 2007; Chris Gianelloni <wolf31o2@gentoo.org>
modules/generic_stage_target.py:
Fixing check for invalid subarch to not filter too much. Fix from Mike
# fixed. We need this to use the os.system() call since we can't
# specify our own environ:
for x in self.settings.keys():
- # "/" is replaced with "_", "-" is replaced with "_", and "." is
- # replaced with "_"
+ # sanitize var names by doing "s|/-.|_|g"
varname="clst_"+string.replace(x,"/","_")
varname=string.replace(varname,"-","_")
varname=string.replace(varname,".","_")
elif type(self.settings[x])==types.ListType:
#os.environ[varname]=string.join(self.settings[x])
self.env[varname]=string.join(self.settings[x])
+ elif type(self.settings[x])==types.BooleanType:
+ if self.settings[x]:
+ self.env[varname]="true"
+ else:
+ self.env[varname]="false"
if self.settings.has_key("makeopts"):
self.env["MAKEOPTS"]=self.settings["makeopts"]