migration.py
branchstable
changeset 5485 4a033d7f1d93
parent 5426 0d4853a6e5ee
parent 5484 95f2384b4495
child 5486 5790462343cb
child 5488 ded032692cb9
equal deleted inserted replaced
5476:23758c00d3ab 5485:4a033d7f1d93
   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)
   382         show_diffs(configfile, newconfig, ask_confirm=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