migration.py
changeset 5508 6718ba5db0eb
parent 5486 5790462343cb
parent 5488 ded032692cb9
child 5590 a56eb02f9ce7
equal deleted inserted replaced
5493:c323ff08ad35 5508:6718ba5db0eb
   389             if optdescr[0] == 'added':
   389             if optdescr[0] == 'added':
   390                 optdict = self.config.get_option_def(optdescr[1])
   390                 optdict = self.config.get_option_def(optdescr[1])
   391                 if optdict.get('default') is REQUIRED:
   391                 if optdict.get('default') is REQUIRED:
   392                     self.config.input_option(optdescr[1], optdict)
   392                     self.config.input_option(optdescr[1], optdict)
   393         self.config.generate_config(open(newconfig, 'w'))
   393         self.config.generate_config(open(newconfig, 'w'))
   394         show_diffs(configfile, newconfig, ask_confirm=self.confirm is not yes)
   394         show_diffs(configfile, newconfig, askconfirm=self.confirm is not yes)
   395         os.close(fd)
   395         os.close(fd)
   396         if exists(newconfig):
   396         if exists(newconfig):
   397             os.unlink(newconfig)
   397             os.unlink(newconfig)
   398 
   398 
   399 
   399