From d9c14ee51eb1e31c5d255877c2bac88d9d3fb6e4 Mon Sep 17 00:00:00 2001 From: Antoine Catton <acatton@tiolive.com> Date: Fri, 6 Jan 2012 14:48:27 +0100 Subject: [PATCH] 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. --- slapos/recipe/softwaretype.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slapos/recipe/softwaretype.py b/slapos/recipe/softwaretype.py index 0c17a41300..43ff451f1e 100644 --- a/slapos/recipe/softwaretype.py +++ b/slapos/recipe/softwaretype.py @@ -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) -- 2.30.9