server/serverctl.py
changeset 2473 490f88fb99b6
parent 2461 1f38b65cbd20
child 2476 1294a6bdf3bf
--- a/server/serverctl.py	Fri Jul 24 12:43:41 2009 +0200
+++ b/server/serverctl.py	Fri Jul 24 12:47:47 2009 +0200
@@ -692,6 +692,11 @@
           'help': 're-indexes the database for full text search if this \
 option is set to "y" or "yes" (may be long for large database).'}
          ),
+        ("force",
+         {'short': 'f', 'action' : "store_true",
+          'default' : False,
+          'help': 'don\'t check instance is up to date.'}
+         ),
 
         )
 
@@ -699,6 +704,7 @@
         from cubicweb.server.checkintegrity import check
         appid = pop_arg(args, 1, msg="No application specified !")
         config = ServerConfiguration.config_for(appid)
+        config.repairing = self.config.force
         repo, cnx = repo_cnx(config)
         check(repo, cnx,
               self.config.checks, self.config.reindex, self.config.autofix)