equal
deleted
inserted
replaced
377 if optdescr[0] == 'added': |
377 if optdescr[0] == 'added': |
378 optdict = self.config.get_option_def(optdescr[1]) |
378 optdict = self.config.get_option_def(optdescr[1]) |
379 if optdict.get('default') is REQUIRED: |
379 if optdict.get('default') is REQUIRED: |
380 self.config.input_option(optdescr[1], optdict) |
380 self.config.input_option(optdescr[1], optdict) |
381 self.config.generate_config(open(newconfig, 'w')) |
381 self.config.generate_config(open(newconfig, 'w')) |
382 show_diffs(configfile, newconfig, ask_confirm=self.confirm is not yes) |
382 show_diffs(configfile, newconfig, askconfirm=self.confirm is not yes) |
383 os.close(fd) |
383 os.close(fd) |
384 if exists(newconfig): |
384 if exists(newconfig): |
385 os.unlink(newconfig) |
385 os.unlink(newconfig) |
386 |
386 |
387 |
387 |