equal
deleted
inserted
replaced
344 newconfig = mktemp() |
344 newconfig = mktemp() |
345 for optdescr in self._option_changes: |
345 for optdescr in self._option_changes: |
346 if optdescr[0] == 'added': |
346 if optdescr[0] == 'added': |
347 optdict = self.config.get_option_def(optdescr[1]) |
347 optdict = self.config.get_option_def(optdescr[1]) |
348 if optdict.get('default') is REQUIRED: |
348 if optdict.get('default') is REQUIRED: |
349 self.config.input_option(option, optdict) |
349 self.config.input_option(optdescr[1], optdict) |
350 self.config.generate_config(open(newconfig, 'w')) |
350 self.config.generate_config(open(newconfig, 'w')) |
351 show_diffs(configfile, newconfig) |
351 show_diffs(configfile, newconfig) |
352 if exists(newconfig): |
352 if exists(newconfig): |
353 os.unlink(newconfig) |
353 os.unlink(newconfig) |
354 |
354 |