migration.py
branchstable
changeset 5488 ded032692cb9
parent 5485 4a033d7f1d93
parent 5487 3ab2682a4b37
child 5508 6718ba5db0eb
child 5580 3e9e6dd54ebb
equal deleted inserted replaced
5485:4a033d7f1d93 5488:ded032692cb9
   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