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