My build environment (jenkins) has an environment variable named
'BUILD_NUMBER', i want it to be available as a macro. To achieve this
i have added something like this to my mock configuration file
config_opts['macros']['%build_number'] = os.getenv('BUILD_NUMBER')
if
os.getenv('BUILD_NUMBER') != None else time.strftime('%d%m%Y%I%M')
But, this os.getenv('BUILD_NUMBER') always returns 'None'. The
environment variable which is available outside mock never gets
exported to mock environment. My mock version is 1.2.7.
--
Arun S A G
http://zer0c00l.in/