--- a/server/serverctl.py Fri May 30 17:40:22 2014 +0200
+++ b/server/serverctl.py Fri May 30 17:46:40 2014 +0200
@@ -1,4 +1,4 @@
-# copyright 2003-2012 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+# copyright 2003-2014 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
#
# This file is part of CubicWeb.
@@ -979,10 +979,12 @@
appid = args[0]
config = ServerConfiguration.config_for(appid)
config.repairing = self.config.force
- repo, cnx = repo_cnx(config)
- with cnx:
+ repo, _cnx = repo_cnx(config)
+ with repo.internal_cnx() as cnx:
check(repo, cnx,
- self.config.checks, self.config.reindex, self.config.autofix)
+ self.config.checks,
+ self.config.reindex,
+ self.config.autofix)
class RebuildFTICommand(Command):