Commit d9c14ee5 authored by Antoine Catton's avatar Antoine Catton

Use section name to name the buildout profile file.

This allow having a stable buildout.cfg name.
Thus, when we are switching software type it will not
keep trash buildout profile.
parent 490d6098
......@@ -121,7 +121,7 @@ class Recipe:
work_directory = os.path.abspath(self.buildout['buildout'][
'directory'])
buildout_filename = os.path.join(work_directory,
'buildout-%s.cfg' % software_type)
'buildout-%s.cfg' % self.name)
with open(buildout_filename, 'w') as buildout_file:
buildout.write(buildout_file)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment