[maintainance] don't crash if we've no in-memory repository stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 26 Mar 2010 09:19:09 +0100
branchstable
changeset 5034 4781870e97d9
parent 5033 441191f7def1
child 5035 8469d0acd949
[maintainance] don't crash if we've no in-memory repository
server/migractions.py
--- a/server/migractions.py	Fri Mar 26 09:18:21 2010 +0100
+++ b/server/migractions.py	Fri Mar 26 09:19:09 2010 +0100
@@ -69,7 +69,7 @@
         elif connect:
             self.repo_connect()
         # no config on shell to a remote instance
-        if config is not None:
+        if config is not None and (cnx or connect):
             self.session.data['rebuild-infered'] = False
             self.repo.hm.call_hooks('server_maintenance', repo=self.repo)
         if not schema: