cwctl.py
changeset 7577 9892937d9041
parent 7538 849c04098f3f
child 7591 cb6ece9cdb78
equal deleted inserted replaced
7575:335f14e8e5a7 7577:9892937d9041
   725         print '\n' + underline_title('Upgrading the instance %s' % appid)
   725         print '\n' + underline_title('Upgrading the instance %s' % appid)
   726         from logilab.common.changelog import Version
   726         from logilab.common.changelog import Version
   727         config = cwcfg.config_for(appid)
   727         config = cwcfg.config_for(appid)
   728         config.repairing = True # notice we're not starting the server
   728         config.repairing = True # notice we're not starting the server
   729         config.verbosity = self.config.verbosity
   729         config.verbosity = self.config.verbosity
   730         try:
   730         set_sources_mode = getattr(config, 'set_sources_mode', None)
   731             config.set_sources_mode(self.config.ext_sources or ('migration',))
   731         if set_sources_mode is not None:
   732         except AttributeError:
   732             set_sources_mode(self.config.ext_sources or ('migration',))
   733             # not a server config
       
   734             pass
       
   735         # get instance and installed versions for the server and the componants
   733         # get instance and installed versions for the server and the componants
   736         mih = config.migration_handler()
   734         mih = config.migration_handler()
   737         repo = mih.repo_connect()
   735         repo = mih.repo_connect()
   738         vcconf = repo.get_versions()
   736         vcconf = repo.get_versions()
   739         if self.config.force_cube_version:
   737         if self.config.force_cube_version: