cwctl.py
branchstable
changeset 2905 b23bbb31368c
parent 2743 b0e79a77ad67
child 2968 0e3460341023
child 3115 29262ba01464
child 3180 6bab5746ebf5
--- a/cwctl.py	Tue Aug 18 14:27:27 2009 +0200
+++ b/cwctl.py	Tue Aug 18 17:10:08 2009 +0200
@@ -716,7 +716,13 @@
 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 !")
         config = cwcfg.config_for(appid)
@@ -728,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: