[c-c shell] add force option to bypass versions checking
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 17 Aug 2009 19:20:15 +0200
changeset 2884 7fcfb27ab975
parent 2883 57ff19806026
child 2885 0f8084bf2a21
[c-c shell] add force option to bypass versions checking
cwctl.py
--- a/cwctl.py	Mon Aug 17 18:37:16 2009 +0200
+++ b/cwctl.py	Mon Aug 17 19:20:15 2009 +0200
@@ -717,6 +717,11 @@
 sources for migration will be automatically selected.",
           }),
 
+        ('force',
+         {'short': 'f', 'action' : 'store_true',
+          'default' : False,
+          'help': 'don\'t check instance is up to date.'}
+         ),
         )
     def run(self, args):
         appid = pop_arg(args, 99, msg="No instance specified !")
@@ -729,6 +734,7 @@
         else:
             sources = ('all',)
         config.set_sources_mode(sources)
+        config.repairing = self.config.force
         mih = config.migration_handler()
         if args:
             for arg in args: