diff --git a/slapos/recipe/zeroknown.py b/slapos/recipe/zeroknown.py index 2043208a3c9f154870bc52baa4851b2d7a6eeb30..b3309c54f85df2e346a7be7695d0e82354e82bf7 100644 --- a/slapos/recipe/zeroknown.py +++ b/slapos/recipe/zeroknown.py @@ -58,19 +58,25 @@ class WriteRecipe(GenericBaseRecipe): self.parser.write(file) # If the file or section do not exist except ConfigParser.NoSectionError, IOError: - self.full_install() + self.install() - install = update = lambda self: [] - - def full_install(self): + def install(self): + """XXX-Nicolas : when some parameter's value is changed in + buildout profile, this will override custom user defined values""" self.parser.read(self.path) + if self.parser.has_section(self.name): + self.parser.remove_section(self.name) self.parser.add_section(self.name) for key in self.options: self.parser.set(self.name, key, self.options[key]) with open(self.path, 'w') as file: self.parser.write(file) + + def update(self): + pass + class ReadRecipe(GenericBaseRecipe): """