cwctl.py
changeset 10569 af47954c1015
parent 10474 1dcc52f5e340
child 10589 7c23b7de2b8d
equal deleted inserted replaced
10568:3914388b2d0f 10569:af47954c1015
   765         set_sources_mode = getattr(config, 'set_sources_mode', None)
   765         set_sources_mode = getattr(config, 'set_sources_mode', None)
   766         if set_sources_mode is not None:
   766         if set_sources_mode is not None:
   767             set_sources_mode(self.config.ext_sources or ('migration',))
   767             set_sources_mode(self.config.ext_sources or ('migration',))
   768         # get instance and installed versions for the server and the componants
   768         # get instance and installed versions for the server and the componants
   769         mih = config.migration_handler()
   769         mih = config.migration_handler()
   770         repo = mih.repo_connect()
   770         repo = mih.repo
   771         vcconf = repo.get_versions()
   771         vcconf = repo.get_versions()
   772         helper = self.config_helper(config, required=False)
   772         helper = self.config_helper(config, required=False)
   773         if self.config.force_cube_version:
   773         if self.config.force_cube_version:
   774             for cube, version in self.config.force_cube_version.iteritems():
   774             for cube, version in self.config.force_cube_version.iteritems():
   775                 vcconf[cube] = Version(version)
   775                 vcconf[cube] = Version(version)
   854         config.repairing = True
   854         config.repairing = True
   855         # no need to load all appobjects and schema
   855         # no need to load all appobjects and schema
   856         config.quick_start = True
   856         config.quick_start = True
   857         if hasattr(config, 'set_sources_mode'):
   857         if hasattr(config, 'set_sources_mode'):
   858             config.set_sources_mode(('migration',))
   858             config.set_sources_mode(('migration',))
   859         repo = config.migration_handler().repo_connect()
   859         vcconf = config.repository().get_versions()
   860         vcconf = repo.get_versions()
       
   861         for key in sorted(vcconf):
   860         for key in sorted(vcconf):
   862             print key+': %s.%s.%s' % vcconf[key]
   861             print key+': %s.%s.%s' % vcconf[key]
   863 
   862 
   864 class ShellCommand(Command):
   863 class ShellCommand(Command):
   865     """Run an interactive migration shell on an instance. This is a python shell
   864     """Run an interactive migration shell on an instance. This is a python shell