[repo] don't attempt to read sources from database on quick start. Fix crash after restoring a pre 3.10 database
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 02 Nov 2010 08:16:18 +0100
changeset 6664 7b6acf314a7a
parent 6663 6e4f16827048
child 6666 55a94beb521d
[repo] don't attempt to read sources from database on quick start. Fix crash after restoring a pre 3.10 database
server/repository.py
--- a/server/repository.py	Tue Nov 02 08:14:47 2010 +0100
+++ b/server/repository.py	Tue Nov 02 08:16:18 2010 +0100
@@ -234,8 +234,8 @@
 
     def init_sources_from_database(self):
         self.sources_by_eid = {}
-        if not 'CWSource' in self.schema:
-            # 3.10 migration
+        if self.config.quick_start \
+               or not 'CWSource' in self.schema: # # 3.10 migration
             return
         session = self.internal_session()
         try: