equal
deleted
inserted
replaced
714 repository should connect to for upgrading. When unspecified or 'all' given, \ |
714 repository should connect to for upgrading. When unspecified or 'all' given, \ |
715 will connect to all defined sources. If 'migration' is given, appropriate \ |
715 will connect to all defined sources. If 'migration' is given, appropriate \ |
716 sources for migration will be automatically selected.", |
716 sources for migration will be automatically selected.", |
717 }), |
717 }), |
718 |
718 |
|
719 ('force', |
|
720 {'short': 'f', 'action' : 'store_true', |
|
721 'default' : False, |
|
722 'help': 'don\'t check instance is up to date.'} |
|
723 ), |
719 ) |
724 ) |
|
725 |
720 def run(self, args): |
726 def run(self, args): |
721 appid = pop_arg(args, 99, msg="No instance specified !") |
727 appid = pop_arg(args, 99, msg="No instance specified !") |
722 config = cwcfg.config_for(appid) |
728 config = cwcfg.config_for(appid) |
723 if self.config.ext_sources: |
729 if self.config.ext_sources: |
724 assert not self.config.system_only |
730 assert not self.config.system_only |
726 elif self.config.system_only: |
732 elif self.config.system_only: |
727 sources = ('system',) |
733 sources = ('system',) |
728 else: |
734 else: |
729 sources = ('all',) |
735 sources = ('all',) |
730 config.set_sources_mode(sources) |
736 config.set_sources_mode(sources) |
|
737 config.repairing = self.config.force |
731 mih = config.migration_handler() |
738 mih = config.migration_handler() |
732 if args: |
739 if args: |
733 for arg in args: |
740 for arg in args: |
734 mih.process_script(arg) |
741 mih.process_script(arg) |
735 else: |
742 else: |