cwctl.py
changeset 2473 490f88fb99b6
parent 2395 e3093fc12a00
child 2476 1294a6bdf3bf
equal deleted inserted replaced
2472:a459a6ab78d0 2473:490f88fb99b6
   614         return ApplicationCommand.ordered_instances(self)
   614         return ApplicationCommand.ordered_instances(self)
   615 
   615 
   616     def upgrade_application(self, appid):
   616     def upgrade_application(self, appid):
   617         from logilab.common.changelog import Version
   617         from logilab.common.changelog import Version
   618         config = cwcfg.config_for(appid)
   618         config = cwcfg.config_for(appid)
   619         config.creating = True # notice we're not starting the server
   619         config.repairing = True # notice we're not starting the server
   620         config.verbosity = self.config.verbosity
   620         config.verbosity = self.config.verbosity
   621         try:
   621         try:
   622             config.set_sources_mode(self.config.ext_sources or ('migration',))
   622             config.set_sources_mode(self.config.ext_sources or ('migration',))
   623         except AttributeError:
   623         except AttributeError:
   624             # not a server config
   624             # not a server config